Class: Capistrano::ASG::Rolling::AutoscaleGroup::InstanceRefreshStatus

Inherits:
Struct
  • Object
show all
Defined in:
lib/capistrano/asg/rolling/autoscale_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#percentage_completeObject

Returns the value of attribute percentage_complete

Returns:

  • (Object)

    the current value of percentage_complete



92
93
94
# File 'lib/capistrano/asg/rolling/autoscale_group.rb', line 92

def percentage_complete
  @percentage_complete
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



92
93
94
# File 'lib/capistrano/asg/rolling/autoscale_group.rb', line 92

def status
  @status
end

Instance Method Details

#completed?Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/capistrano/asg/rolling/autoscale_group.rb', line 93

def completed?
  COMPLETED_REFRESH_STATUSES.include?(status)
end

#failed?Boolean

Returns:

  • (Boolean)


97
98
99
# File 'lib/capistrano/asg/rolling/autoscale_group.rb', line 97

def failed?
  status == FAILED_REFRESH_STATUS
end