Sha256: e7f66e46f60201d0b20739f79979d500c3e2448c49970f6d271a0f7efdef0de2
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
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 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(identity) all.find { |deployment| deployment.name == identity } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.5 | lib/fog/azurerm/models/resources/deployments.rb |
fog-azure-rm-0.0.4 | lib/fog/azurerm/models/resources/deployments.rb |