Sha256: b41096eba888b9706c6d2009bc087ca984bc61fc64566226b90c4c3aba8d79de
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
module Fog module Resources class AzureRM # Deployments collection class class Deployments < Fog::Collection attribute :resource_group model Fog::Resources::AzureRM::Deployment def all requires :resource_group deployments = [] service.list_deployments(resource_group).each do |deployment| deployments << Fog::Resources::AzureRM::Deployment.parse(deployment) end load(deployments) end def get(resource_group_name, deployment_name) deployment = service.get_deployment(resource_group_name, deployment_name) deployment_fog = Fog::Resources::AzureRM::Deployment.new(service: service) deployment_fog.merge_attributes(Fog::Resources::AzureRM::Deployment.parse(deployment)) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.1.1 | lib/fog/azurerm/models/resources/deployments.rb |