Module: Fog::Voxel

Extended by:
Provider
Defined in:
lib/fog/compute/voxel.rb,
lib/fog/providers/voxel.rb,
lib/fog/compute/models/voxel/image.rb,
lib/fog/compute/models/voxel/images.rb,
lib/fog/compute/models/voxel/server.rb,
lib/fog/compute/models/voxel/servers.rb,
lib/fog/compute/requests/voxel/images_list.rb,
lib/fog/compute/requests/voxel/devices_list.rb,
lib/fog/compute/requests/voxel/devices_power.rb,
lib/fog/compute/requests/voxel/voxcloud_create.rb,
lib/fog/compute/requests/voxel/voxcloud_delete.rb,
lib/fog/compute/requests/voxel/voxcloud_status.rb

Defined Under Namespace

Classes: Compute

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