Class: Hashira::CLI::Run
- Inherits:
-
Object
- Object
- Hashira::CLI::Run
- Defined in:
- lib/hashira/cli/run.rb
Constant Summary collapse
- MODES =
{ update: :update, ratchet: :check, fail_on: :guard, json: :json, dot: :diagram, mermaid: :diagram }.freeze
Instance Method Summary collapse
-
#initialize(pipeline, options) ⇒ Run
constructor
A new instance of Run.
- #status ⇒ Object
Constructor Details
#initialize(pipeline, options) ⇒ Run
Returns a new instance of Run.
6 7 8 9 |
# File 'lib/hashira/cli/run.rb', line 6 def initialize(pipeline, ) @pipeline = pipeline @options = end |
Instance Method Details
#status ⇒ Object
11 |
# File 'lib/hashira/cli/run.rb', line 11 def status = __send__(MODES.fetch(@options.mode, :text)) |