Module: Fog::Voxel

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

Class Method Summary collapse

Methods included from Provider

extended, service, services

Class Method Details

.create_signature(secret, options) ⇒ Object



11
12
13
14
# File 'lib/fog/providers/voxel.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