Class: Hashira::CLI::Run
- Inherits:
-
Object
- Object
- Hashira::CLI::Run
- Defined in:
- lib/hashira/cli/run.rb
Constant Summary collapse
- MODES =
{ update_baseline: :update_baseline, ratchet: :check_ratchet, fail_on: :check_gate, json: :print_json, dot: :print_diagram, mermaid: :print_diagram }.freeze
Instance Method Summary collapse
- #exit_code ⇒ Object
-
#initialize(pipeline, options) ⇒ Run
constructor
A new instance of Run.
Constructor Details
#initialize(pipeline, options) ⇒ Run
Returns a new instance of Run.
10 11 12 13 |
# File 'lib/hashira/cli/run.rb', line 10 def initialize(pipeline, ) @pipeline = pipeline @options = end |
Instance Method Details
#exit_code ⇒ Object
15 |
# File 'lib/hashira/cli/run.rb', line 15 def exit_code = send(MODES.fetch(@options.mode, :print_text)) |