Process::MetricsSourceProcessMetricsCommandTop

class Top

Top-level command entry point for the process-metrics CLI.

Nested

Definitions

def call

Execute the top command, dispatching to nested commands.

Implementation

def call
	if @options[:version]
		puts "#{self.name} v#{VERSION}"
	elsif @options[:help]
		self.print_usage
	else
		@command.call
	end
end