Class: TurboTest::Command::Top
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- TurboTest::Command::Top
- Defined in:
- lib/turbo_test/command/top.rb
Overview
The top level command for the ‘falcon` executable.
Instance Method Summary collapse
-
#call ⇒ Object
Prepare the environment and invoke the sub-command.
-
#command(value) ⇒ Object
The nested command to execute.
Instance Method Details
#call ⇒ Object
Prepare the environment and invoke the sub-command.
34 35 36 37 38 39 40 41 42 |
# File 'lib/turbo_test/command/top.rb', line 34 def call if @options[:version] puts "#{self.name} v#{VERSION}" elsif @options[:help] self.print_usage else @command.call end end |