Class: Pec::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pec::CLI
- Defined in:
- lib/pec/cli.rb
Instance Method Summary collapse
- #__print_version ⇒ Object
- #config(*hosts) ⇒ Object
- #destroy(*hosts) ⇒ Object
- #halt(*hosts) ⇒ Object
- #init ⇒ Object
- #list ⇒ Object
- #status(*hosts) ⇒ Object
- #up(*hosts) ⇒ Object
Instance Method Details
#__print_version ⇒ Object
43 44 45 |
# File 'lib/pec/cli.rb', line 43 def __print_version puts Pec::VERSION end |
#config(*hosts) ⇒ Object
37 38 39 |
# File 'lib/pec/cli.rb', line 37 def config(*hosts) _sub_command(hosts, ) end |
#destroy(*hosts) ⇒ Object
17 18 19 |
# File 'lib/pec/cli.rb', line 17 def destroy(*hosts) _sub_command(hosts, ) end |
#halt(*hosts) ⇒ Object
22 23 24 |
# File 'lib/pec/cli.rb', line 22 def halt(*hosts) _sub_command(hosts, ) end |
#init ⇒ Object
6 7 8 |
# File 'lib/pec/cli.rb', line 6 def init _sub_command([], ) end |
#list ⇒ Object
32 33 34 |
# File 'lib/pec/cli.rb', line 32 def list _sub_command([], ) end |
#status(*hosts) ⇒ Object
27 28 29 |
# File 'lib/pec/cli.rb', line 27 def status(*hosts) _sub_command(hosts, ) end |
#up(*hosts) ⇒ Object
11 12 13 |
# File 'lib/pec/cli.rb', line 11 def up(*hosts) _sub_command(hosts, ) end |