Class: Git::Heatmap::Command::Top
- Inherits:
-
Samovar::Command
- Object
- Samovar::Command
- Git::Heatmap::Command::Top
- Defined in:
- lib/git/heatmap/command.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/git/heatmap/command.rb', line 55 def call if verbose? Console.logger.debug! elsif quiet? Console.logger.warn! else Console.logger.info! end if @options[:version] puts "#{self.name} v#{VERSION}" else @command.call end end |
#quiet? ⇒ Boolean
51 52 53 |
# File 'lib/git/heatmap/command.rb', line 51 def quiet? @options[:logging] == :quiet end |
#verbose? ⇒ Boolean
47 48 49 |
# File 'lib/git/heatmap/command.rb', line 47 def verbose? @options[:logging] == :verbose end |