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
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, ) end |
#destroy(*filter_hosts) ⇒ Object
18 19 20 |
# File 'lib/pec/cli.rb', line 18 def destroy(*filter_hosts) _sub_command(filter_hosts, ) end |
#halt(*filter_hosts) ⇒ Object
23 24 25 |
# File 'lib/pec/cli.rb', line 23 def halt(*filter_hosts) _sub_command(filter_hosts, ) end |
#hosts ⇒ Object
43 44 45 |
# File 'lib/pec/cli.rb', line 43 def hosts _sub_command([], ) end |
#init ⇒ Object
7 8 9 |
# File 'lib/pec/cli.rb', line 7 def init _sub_command([], ) end |
#list ⇒ Object
33 34 35 |
# File 'lib/pec/cli.rb', line 33 def list _sub_command([], ) end |
#status(*filter_hosts) ⇒ Object
28 29 30 |
# File 'lib/pec/cli.rb', line 28 def status(*filter_hosts) _sub_command(filter_hosts, ) end |
#up(*filter_hosts) ⇒ Object
12 13 14 |
# File 'lib/pec/cli.rb', line 12 def up(*filter_hosts) _sub_command(filter_hosts, ) end |