Class: TurboTest::Command::List
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- TurboTest::Command::List
- Defined in:
- lib/turbo_test/command/list.rb
Instance Method Summary collapse
-
#call ⇒ Object
Prepare the environment and run the controller.
Instance Method Details
#call ⇒ Object
Prepare the environment and run the controller.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/turbo_test/command/list.rb', line 26 def call path = @options[:configuration] full_path = File.(path) configuration = Configuration.new if File.exist?(full_path) configuration.load(full_path) end configuration.finalize! configuration.jobs.each do |klass, path, **| if &.any? puts "#{klass}: #{path} #{.inspect}" else puts "#{klass}: #{path}" end end end |