lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.1.1 vs lib/azure/armrest/resource_provider_service.rb in azure-armrest-0.1.2
- old
+ new
@@ -21,12 +21,12 @@
# mind that it is a global setting for the class. You can also set this
# at the class level if desired. The default cache time is 24 hours.
#
# You can also set the provider. The default is 'Microsoft.Resources'.
#
- def initialize(armrest_configuration, options = {})
- super(armrest_configuration, 'resourceGroups', 'Microsoft.Resources', options)
+ def initialize(configuration, options = {})
+ super(configuration, 'resourceGroups', 'Microsoft.Resources', options)
if options[:cache_time]
@cache_time = options[:cache_time]
self.class.send(:cache_time=, @cache_time)
end
@@ -124,10 +124,10 @@
end
private
def build_url(namespace = nil, *args)
- id = armrest_configuration.subscription_id
+ id = configuration.subscription_id
url = File.join(Azure::Armrest::COMMON_URI, id, 'providers')
url = File.join(url, namespace) if namespace
url = File.join(url, *args) unless args.empty?
url << "?api-version=#{@api_version}"
end