Class: OpsWorker::DeploymentStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_worker/deployment_status.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, opsworks_client) ⇒ DeploymentStatus

Returns a new instance of DeploymentStatus.



3
4
5
6
# File 'lib/ops_worker/deployment_status.rb', line 3

def initialize(id, opsworks_client)
  @id = id
  @opsworks_client = opsworks_client
end

Instance Method Details

#statusObject



8
9
10
# File 'lib/ops_worker/deployment_status.rb', line 8

def status
  commands().map {|c| c[:status] }
end