class Awspec::Type::CodedeployDeploymentGroup

Attributes

application_name[RW]

Public Class Methods

new(group) click to toggle source
Calls superclass method
# File lib/awspec/type/codedeploy_deployment_group.rb, line 5
def initialize(group)
  super
  @display_name = group
end

Public Instance Methods

has_autoscaling_group?(asg_name) click to toggle source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 22
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
id() click to toggle source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 14
def id
  @id ||= resource_via_client.deployment_group_id if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 10
def resource_via_client
  @resource_via_client ||= find_codedeploy_deployment_group(application_name, @display_name)
end