Class: Rubycc::Rmake::Executor::LineState
- Inherits:
-
Object
- Object
- Rubycc::Rmake::Executor::LineState
- Defined in:
- lib/rubycc/rmake/executor.rb
Overview
Per-recipe-line mutable state: the working directory a cd in the same
line has moved to, and the reason string of the most recent failure (used
to enrich CommandFailedError). Each recipe line starts from the Makefile's
base directory afresh, matching make running every line in its own shell.
Instance Attribute Summary collapse
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#failure_reason ⇒ Object
Returns the value of attribute failure_reason.
Instance Method Summary collapse
-
#initialize(cwd) ⇒ LineState
constructor
A new instance of LineState.
Constructor Details
#initialize(cwd) ⇒ LineState
Returns a new instance of LineState.
47 48 49 50 |
# File 'lib/rubycc/rmake/executor.rb', line 47 def initialize(cwd) @cwd = cwd @failure_reason = nil end |
Instance Attribute Details
#cwd ⇒ Object
Returns the value of attribute cwd.
45 46 47 |
# File 'lib/rubycc/rmake/executor.rb', line 45 def cwd @cwd end |
#failure_reason ⇒ Object
Returns the value of attribute failure_reason.
45 46 47 |
# File 'lib/rubycc/rmake/executor.rb', line 45 def failure_reason @failure_reason end |