Sha256: 210df2982a6bc0009011d8e698566f998a37608fbf749bd0e2eb47f7af35d602
Contents?: true
Size: 812 Bytes
Versions: 42
Compression:
Stored size: 812 Bytes
Contents
module Awspec::Type class CodedeployDeploymentGroup < ResourceBase attr_accessor :application_name def initialize(group) super @display_name = group end def resource_via_client @resource_via_client ||= find_codedeploy_deployment_group(application_name, @display_name) end def id @id ||= resource_via_client.deployment_group_id if resource_via_client end def application_name @application_name || 'default' end def has_autoscaling_group?(asg_name) asgs = resource_via_client.auto_scaling_groups res = asgs.find do |asg| asg.name == asg_name end return true if res asg2 = find_autoscaling_group(asg_name) return true if asgs.include? asg2.auto_scaling_group_name false end end end
Version data entries
42 entries across 42 versions & 3 rubygems