lib/fog/azurerm/models/resources/resource_groups.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/models/resources/resource_groups.rb in fog-azure-rm-0.1.1

- old
+ new

@@ -2,23 +2,23 @@ module Resources class AzureRM # This class is giving implementation of all/list, get and # check name availability for resource groups. class ResourceGroups < Fog::Collection - model ResourceGroup + model Fog::Resources::AzureRM::ResourceGroup def all resource_groups = [] service.list_resource_groups.each do |resource_group| - resource_groups.push(ResourceGroup.parse(resource_group)) + resource_groups.push(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group)) end load(resource_groups) end def get(resource_group_name) resource_group = service.get_resource_group(resource_group_name) - resource_group_object = ResourceGroup.new(service: service) - resource_group_object.merge_attributes(ResourceGroup.parse(resource_group)) + resource_group_fog = Fog::Resources::AzureRM::ResourceGroup.new(service: service) + resource_group_fog.merge_attributes(Fog::Resources::AzureRM::ResourceGroup.parse(resource_group)) end end end end end