class Pec::CLI

Public Instance Methods

__print_version() click to toggle source
# File lib/pec/cli.rb, line 49
def __print_version
  puts Pec::VERSION
end
_sub_command(filter_hosts, options) click to toggle source
# File lib/pec/cli.rb, line 54
def _sub_command(filter_hosts, options)
  Pec.options options
  Object.const_get("Pec::Command::#{caller[0][/`([^']*)'/, 1].capitalize}").run(filter_hosts)
end
config(*filter_hosts) click to toggle source
# File lib/pec/cli.rb, line 38
def config(*filter_hosts)
  _sub_command(filter_hosts, options)
end
destroy(*filter_hosts) click to toggle source
# File lib/pec/cli.rb, line 18
def destroy(*filter_hosts)
  _sub_command(filter_hosts, options)
end
halt(*filter_hosts) click to toggle source
# File lib/pec/cli.rb, line 23
def halt(*filter_hosts)
  _sub_command(filter_hosts, options)
end
hosts() click to toggle source
# File lib/pec/cli.rb, line 43
def hosts
  _sub_command([], options)
end
init() click to toggle source
# File lib/pec/cli.rb, line 7
def init
  _sub_command([], options)
end
list() click to toggle source
# File lib/pec/cli.rb, line 33
def list
  _sub_command([], options)
end
status(*filter_hosts) click to toggle source
# File lib/pec/cli.rb, line 28
def status(*filter_hosts)
  _sub_command(filter_hosts, options)
end
up(*filter_hosts) click to toggle source
# File lib/pec/cli.rb, line 12
def up(*filter_hosts)
  _sub_command(filter_hosts, options)
end