mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
b2c8ff0388
Should facilitate the following: require 'fog/aws' require 'fog/compute' require 'fog/aws/compute' I think once you `require 'rubygems'` those should work. further cleanup should reduce common requires (ie nokogiri)
16 lines
398 B
Ruby
16 lines
398 B
Ruby
require(File.expand_path(File.join(File.dirname(__FILE__), 'core')))
|
|
require 'digest/md5'
|
|
|
|
module Fog
|
|
module Voxel
|
|
|
|
extend Fog::Provider
|
|
|
|
service(:compute, 'voxel/compute')
|
|
|
|
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
|
|
end
|
|
end
|