Method: Fog::Terremark::Shared#check_shared_options
- Defined in:
- lib/fog/terremark/shared.rb
permalink #check_shared_options(options) ⇒ Object
[View source]
232 233 234 235 236 237 238 239 |
# File 'lib/fog/terremark/shared.rb', line 232 def () %w{ecloud vcloud}.each do |cloud| cloud_option_keys = .keys.select { |key| key.to_s =~ /^terremark_#{cloud}_.*/ } unless cloud_option_keys.length == 0 || cloud_option_keys.length == 2 raise ArgumentError.new("terremark_#{cloud}_username and terremark_#{cloud}_password required to access teremark") end end end |