Class: Pec::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pec::CLI
- Defined in:
- lib/pec/cli.rb
Instance Method Summary collapse
- #__print_version ⇒ Object
- #config(*filter_hosts) ⇒ Object
- #destroy(*filter_hosts) ⇒ Object
- #halt(*filter_hosts) ⇒ Object
- #hosts ⇒ Object
- #init ⇒ Object
- #list ⇒ Object
- #status(*filter_hosts) ⇒ Object
- #up(*filter_hosts) ⇒ Object
Instance Method Details
#__print_version ⇒ Object
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, ) end |
#destroy(*filter_hosts) ⇒ Object
17 18 19 |
# File 'lib/pec/cli.rb', line 17 def destroy(*filter_hosts) _sub_command(filter_hosts, ) end |
#halt(*filter_hosts) ⇒ Object
22 23 24 |
# File 'lib/pec/cli.rb', line 22 def halt(*filter_hosts) _sub_command(filter_hosts, ) end |
#hosts ⇒ Object
42 43 44 |
# File 'lib/pec/cli.rb', line 42 def hosts _sub_command([], ) 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(*filter_hosts) ⇒ Object
27 28 29 |
# File 'lib/pec/cli.rb', line 27 def status(*filter_hosts) _sub_command(filter_hosts, ) end |
#up(*filter_hosts) ⇒ Object
11 12 13 |
# File 'lib/pec/cli.rb', line 11 def up(*filter_hosts) _sub_command(filter_hosts, ) end |