Method: Condo::Strata::MicrosoftAzure#initialize
- Defined in:
- lib/condo/strata/microsoft_azure.rb
#initialize(options) ⇒ MicrosoftAzure
Returns a new instance of MicrosoftAzure.
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/condo/strata/microsoft_azure.rb', line 15 def initialize() @options = { :name => :MicrosoftAzure }.merge!() raise ArgumentError, 'Azure Account Name missing' if @options[:account_name].nil? raise ArgumentError, 'Azure Access Key missing' if @options[:access_key].nil? @options[:blob_host] = "https://#{@options[:account_name]}.blob.core.windows.net" if @options[:blob_host].nil? @options[:location] = @options[:blob_host].to_sym end |