class Awspec::Type::CodedeployDeploymentGroup
Attributes
Public Class Methods
Source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 7 def initialize(group) super @display_name = group end
Calls superclass method
Public Instance Methods
Source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 24 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
Source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 16 def id @id ||= resource_via_client.deployment_group_id if resource_via_client end
Source
# File lib/awspec/type/codedeploy_deployment_group.rb, line 12 def resource_via_client @resource_via_client ||= find_codedeploy_deployment_group(application_name, @display_name) end