Module: Fog::Voxel

Extended by:
Provider
Defined in:
lib/fog/voxel/core.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) create_signature(secret, options)



11
12
13
14
# File 'lib/fog/voxel/core.rb', line 11

def self.create_signature(secret, options)
  to_sign = options.keys.map { |k| k.to_s }.sort.map { |k| "#{k}#{options[k.to_sym]}" }.join("")
  Digest::MD7.hexdigest( secret + to_sign )
end