Class: Hashira::CLI::Run

Inherits:
Object
  • Object
show all
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

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, options)
  @pipeline = pipeline
  @options = options
end

Instance Method Details

#statusObject



12
# File 'lib/hashira/cli/run.rb', line 12

def status = __send__(MODES.fetch(@options.mode, :text))