lib/aliyun.rb in aliyun-api-0.0.3 vs lib/aliyun.rb in aliyun-api-0.0.4

- old
+ new

@@ -14,11 +14,11 @@ :SignatureMethod=>"HMAC-SHA1", :SignatureVersion=>"1.0" } self.request_method = 'GET' self.endpoint_url = 'https://ecs.aliyuncs.com/' - self.access_key_id = ENV['ACCESS_KEY_ID'] - self.access_key_secret = ENV['ACCESS_KEY_SECRET'] + self.access_key_id = ENV['ALIYUN_ACCESS_KEY_ID'] + self.access_key_secret = ENV['ALIYUN_ACCESS_KEY_SECRET'] end end def self.[](key) Config.instance.send key if Config.instance.respond_to? key end