Class: Balancer::CLI

Inherits:
Command show all
Defined in:
lib/balancer/cli.rb

Instance Method Summary collapse

Methods inherited from Command

alter_command_description, command_help, dispatch, website

Instance Method Details

#completion(*params) ⇒ Object



20
21
22
# File 'lib/balancer/cli.rb', line 20

def completion(*params)
  Completer.new(CLI, *params).run
end

#completion_scriptObject



26
27
28
# File 'lib/balancer/cli.rb', line 26

def completion_script
  Completer::Script.generate
end

#hello(name = "you") ⇒ Object



9
10
11
12
# File 'lib/balancer/cli.rb', line 9

def hello(name="you")
  puts "from: #{options[:from]}" if options[:from]
  puts "Hello #{name}"
end

#versionObject



31
32
33
# File 'lib/balancer/cli.rb', line 31

def version
  puts VERSION
end