Class: Falcon::Command::Top
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Falcon::Command::Top
- Defined in:
- lib/falcon/command.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/falcon/command.rb', line 60 def call if verbose? Async.logger.debug! elsif quiet? Async.logger.warn! else Async.logger.info! end if @options[:version] puts "#{self.name} v#{Falcon::VERSION}" elsif @options[:help] self.print_usage else @command.call end end |
#quiet? ⇒ Boolean
56 57 58 |
# File 'lib/falcon/command.rb', line 56 def quiet? @options[:logging] == :quiet end |
#verbose? ⇒ Boolean
52 53 54 |
# File 'lib/falcon/command.rb', line 52 def verbose? @options[:logging] == :verbose end |