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

- old
+ new

@@ -8,11 +8,11 @@ module Aliyun class ECS def initialize(options={}) - Aliyun[:access_key_id] = options[:access_key_id] || Aliyun[:access_key_id] || ENV['ACCESS_KEY_ID'] - Aliyun[:access_key_secret] = options[:access_key_secret] || Aliyun[:access_key_secret] || ENV['ACCESS_KEY_SECRET'] + Aliyun[:access_key_id] = options[:access_key_id] || Aliyun[:access_key_id] || ENV['ALIYUN_ACCESS_KEY_ID'] + Aliyun[:access_key_secret] = options[:access_key_secret] || Aliyun[:access_key_secret] || ENV['ALIYUN_ACCESS_KEY_SECRET'] Aliyun[:endpoint_url] ||= options[:endpoint_url] end def method_missing(method_name, *args) super if /[A-Z]/ =~ method_name.to_s