Class: Falcon::Command::Top

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/falcon/command/top.rb

Instance Method Summary collapse

Instance Method Details

#callObject



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/falcon/command/top.rb', line 62

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

Returns:

  • (Boolean)


58
59
60
# File 'lib/falcon/command/top.rb', line 58

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

#verbose?Boolean

Returns:

  • (Boolean)


54
55
56
# File 'lib/falcon/command/top.rb', line 54

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