Class: Pec::CLI

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

Instance Method Summary collapse

Instance Method Details

#__print_versionObject



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

def __print_version
  puts Pec::VERSION
end

#config(*filter_hosts) ⇒ Object



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

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

#destroy(*filter_hosts) ⇒ Object



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

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

#halt(*filter_hosts) ⇒ Object



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

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

#hostsObject



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

def hosts
  _sub_command([], options)
end

#initObject



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

def init
  _sub_command([], options)
end

#listObject



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

def list
  _sub_command([], options)
end

#status(*filter_hosts) ⇒ Object



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

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

#up(*filter_hosts) ⇒ Object



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

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