Class: Rubycc::Rmake::Command
- Inherits:
-
Object
- Object
- Rubycc::Rmake::Command
- Defined in:
- lib/rubycc/rmake/model.rb
Overview
One shell command in an execution step: its expanded text with the
recipe-line prefixes already interpreted. silent (@), ignore_error
(-) and force (+) are retained as attributes so a dumper can show
them; B1 only plans, it does not run anything.
Instance Attribute Summary collapse
-
#force ⇒ Object
readonly
Returns the value of attribute force.
-
#ignore_error ⇒ Object
readonly
Returns the value of attribute ignore_error.
-
#silent ⇒ Object
readonly
Returns the value of attribute silent.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
- #force? ⇒ Boolean
- #ignore_error? ⇒ Boolean
-
#initialize(text:, silent:, ignore_error:, force:) ⇒ Command
constructor
A new instance of Command.
- #silent? ⇒ Boolean
Constructor Details
#initialize(text:, silent:, ignore_error:, force:) ⇒ Command
Returns a new instance of Command.
68 69 70 71 72 73 |
# File 'lib/rubycc/rmake/model.rb', line 68 def initialize(text:, silent:, ignore_error:, force:) @text = text @silent = silent @ignore_error = ignore_error @force = force end |
Instance Attribute Details
#force ⇒ Object (readonly)
Returns the value of attribute force.
66 67 68 |
# File 'lib/rubycc/rmake/model.rb', line 66 def force @force end |
#ignore_error ⇒ Object (readonly)
Returns the value of attribute ignore_error.
66 67 68 |
# File 'lib/rubycc/rmake/model.rb', line 66 def ignore_error @ignore_error end |
#silent ⇒ Object (readonly)
Returns the value of attribute silent.
66 67 68 |
# File 'lib/rubycc/rmake/model.rb', line 66 def silent @silent end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
66 67 68 |
# File 'lib/rubycc/rmake/model.rb', line 66 def text @text end |
Instance Method Details
#force? ⇒ Boolean
83 84 85 |
# File 'lib/rubycc/rmake/model.rb', line 83 def force? @force end |
#ignore_error? ⇒ Boolean
79 80 81 |
# File 'lib/rubycc/rmake/model.rb', line 79 def ignore_error? @ignore_error end |
#silent? ⇒ Boolean
75 76 77 |
# File 'lib/rubycc/rmake/model.rb', line 75 def silent? @silent end |