Class: Git::Heatmap::Command::Top

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/git/heatmap/command.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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

Returns:

  • (Boolean)


51
52
53
# File 'lib/git/heatmap/command.rb', line 51

def quiet?
	@options[:logging] == :quiet
end

#verbose?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/git/heatmap/command.rb', line 47

def verbose?
	@options[:logging] == :verbose
end