Class: Pec::CLI

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

Instance Method Summary collapse

Instance Method Details

#__print_versionObject



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

def __print_version
  puts Pec::VERSION
end

#config(*hosts) ⇒ Object



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

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

#destroy(*hosts) ⇒ Object



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

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

#initObject



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

def init
  _sub_command(nil, options)
end

#listObject



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

def list
  _sub_command(nil, options)
end

#status(*hosts) ⇒ Object



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

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

#up(*hosts) ⇒ Object



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

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