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
- #init ⇒ Object
- #list ⇒ Object
- #status(*hosts) ⇒ Object
- #up(*hosts) ⇒ Object
Instance Method Details
#__print_version ⇒ Object
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, ) end |
#destroy(*hosts) ⇒ Object
17 18 19 |
# File 'lib/pec/cli.rb', line 17 def destroy(*hosts) _sub_command(hosts, ) end |
#init ⇒ Object
6 7 8 |
# File 'lib/pec/cli.rb', line 6 def init _sub_command(nil, ) end |
#list ⇒ Object
27 28 29 |
# File 'lib/pec/cli.rb', line 27 def list _sub_command(nil, ) end |
#status(*hosts) ⇒ Object
22 23 24 |
# File 'lib/pec/cli.rb', line 22 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 |