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 } .merge(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.
4 5 6 7 |
# File 'lib/hashira/cli/run.rb', line 4 def initialize(pipeline, ) @pipeline = pipeline @options = end |
Instance Method Details
#status ⇒ Object
12 |
# File 'lib/hashira/cli/run.rb', line 12 def status = __send__(MODES.fetch(@options.mode, :text)) |