lib/fog/azurerm/models/resources/deployments.rb in fog-azure-rm-0.0.9 vs lib/fog/azurerm/models/resources/deployments.rb in fog-azure-rm-0.1.0

- old
+ new

@@ -1,28 +1,25 @@ -require 'fog/core/collection' -require 'fog/azurerm/models/resources/deployment' - module Fog module Resources class AzureRM # Deployments collection class class Deployments < Fog::Collection attribute :resource_group - model Fog::Resources::AzureRM::Deployment + model Deployment def all requires :resource_group deployments = [] service.list_deployments(resource_group).each do |deployment| - deployments << Fog::Resources::AzureRM::Deployment.parse(deployment) + deployments << Deployment.parse(deployment) end load(deployments) end def get(resource_group_name, deployment_name) deployment = service.get_deployment(resource_group_name, deployment_name) - deployment_object = Fog::Resources::AzureRM::Deployment.new(service: service) - deployment_object.merge_attributes(Fog::Resources::AzureRM::Deployment.parse(deployment)) + deployment_object = Deployment.new(service: service) + deployment_object.merge_attributes(Deployment.parse(deployment)) end end end end end