Class: Pec::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/pec/cli.rb

Instance Method Summary collapse

Instance Method Details

#__print_versionObject



48
49
50
# File 'lib/pec/cli.rb', line 48

def __print_version
  puts Pec::VERSION
end

#config(*filter_hosts) ⇒ Object



37
38
39
# File 'lib/pec/cli.rb', line 37

def config(*filter_hosts)
  _sub_command(filter_hosts, options)
end

#destroy(*filter_hosts) ⇒ Object



17
18
19
# File 'lib/pec/cli.rb', line 17

def destroy(*filter_hosts)
  _sub_command(filter_hosts, options)
end

#halt(*filter_hosts) ⇒ Object



22
23
24
# File 'lib/pec/cli.rb', line 22

def halt(*filter_hosts)
  _sub_command(filter_hosts, options)
end

#hostsObject



42
43
44
# File 'lib/pec/cli.rb', line 42

def hosts
  _sub_command([], options)
end

#initObject



6
7
8
# File 'lib/pec/cli.rb', line 6

def init
  _sub_command([], options)
end

#listObject



32
33
34
# File 'lib/pec/cli.rb', line 32

def list
  _sub_command([], options)
end

#status(*filter_hosts) ⇒ Object



27
28
29
# File 'lib/pec/cli.rb', line 27

def status(*filter_hosts)
  _sub_command(filter_hosts, options)
end

#up(*filter_hosts) ⇒ Object



11
12
13
# File 'lib/pec/cli.rb', line 11

def up(*filter_hosts)
  _sub_command(filter_hosts, options)
end