Class: Drunker::Artifact::Layer
- Inherits:
-
Object
- Object
- Drunker::Artifact::Layer
- Defined in:
- lib/drunker/artifact/layer.rb
Instance Attribute Summary collapse
-
#build_id ⇒ Object
readonly
Returns the value of attribute build_id.
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(build_id:, stdout: nil, stderr: nil, exit_status: nil) ⇒ Layer
constructor
A new instance of Layer.
- #invalid! ⇒ Object
- #invalid? ⇒ Boolean
Constructor Details
#initialize(build_id:, stdout: nil, stderr: nil, exit_status: nil) ⇒ Layer
Returns a new instance of Layer.
9 10 11 12 13 14 15 |
# File 'lib/drunker/artifact/layer.rb', line 9 def initialize(build_id:, stdout: nil, stderr: nil, exit_status: nil) @build_id = build_id @stdout = stdout @stderr = stderr @exit_status = exit_status.to_i @invalid = false end |
Instance Attribute Details
#build_id ⇒ Object (readonly)
Returns the value of attribute build_id.
4 5 6 |
# File 'lib/drunker/artifact/layer.rb', line 4 def build_id @build_id end |
#exit_status ⇒ Object
Returns the value of attribute exit_status.
5 6 7 |
# File 'lib/drunker/artifact/layer.rb', line 5 def exit_status @exit_status end |
#stderr ⇒ Object
Returns the value of attribute stderr.
7 8 9 |
# File 'lib/drunker/artifact/layer.rb', line 7 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout.
6 7 8 |
# File 'lib/drunker/artifact/layer.rb', line 6 def stdout @stdout end |
Instance Method Details
#invalid! ⇒ Object
25 26 27 |
# File 'lib/drunker/artifact/layer.rb', line 25 def invalid! @invalid = true end |
#invalid? ⇒ Boolean
21 22 23 |
# File 'lib/drunker/artifact/layer.rb', line 21 def invalid? @invalid end |