Class: CruiseFace::Model::Pipeline
- Inherits:
-
Object
- Object
- CruiseFace::Model::Pipeline
- Defined in:
- lib/cruise_face/pipeline.rb
Defined Under Namespace
Classes: History
Constant Summary collapse
- PASSED_STATUS =
'Passed'
- FAILED_STATUS =
'Failed'
- CANCELED_STATUS =
'Cancelled'
- COMPLETED_STATUS =
[PASSED_STATUS, FAILED_STATUS, CANCELED_STATUS]
- BUILDING_STATUS =
'Building'
- UNKNOWN_STATUS =
'Unknown'
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
- #history ⇒ Object
-
#initialize(resource) ⇒ Pipeline
constructor
A new instance of Pipeline.
- #stages ⇒ Object
Constructor Details
#initialize(resource) ⇒ Pipeline
Returns a new instance of Pipeline.
149 150 151 152 153 |
# File 'lib/cruise_face/pipeline.rb', line 149 def initialize(resource) @resource = resource @name = resource.pipelineName @pipeline = resource.groups.first end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
148 149 150 |
# File 'lib/cruise_face/pipeline.rb', line 148 def name @name end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
148 149 150 |
# File 'lib/cruise_face/pipeline.rb', line 148 def resource @resource end |