Class: Pec::CLI
- Inherits:
-
Thor
- Object
- Thor
- Pec::CLI
- Defined in:
- lib/pec/cli.rb
Instance Method Summary collapse
- #__print_version ⇒ Object
- #config ⇒ Object
- #destroy(host_name = nil) ⇒ Object
- #init ⇒ Object
- #status(host_name = nil) ⇒ Object
- #up(host_name = nil) ⇒ Object
Instance Method Details
#__print_version ⇒ Object
33 34 35 |
# File 'lib/pec/cli.rb', line 33 def __print_version puts Pec::VERSION end |
#config ⇒ Object
27 28 29 |
# File 'lib/pec/cli.rb', line 27 def config _sub_command(host_name, ) end |
#destroy(host_name = nil) ⇒ Object
17 18 19 |
# File 'lib/pec/cli.rb', line 17 def destroy(host_name = nil) _sub_command(host_name, ) end |
#init ⇒ Object
6 7 8 |
# File 'lib/pec/cli.rb', line 6 def init _sub_command(host_name, ) end |
#status(host_name = nil) ⇒ Object
22 23 24 |
# File 'lib/pec/cli.rb', line 22 def status(host_name = nil) _sub_command(host_name, ) end |
#up(host_name = nil) ⇒ Object
11 12 13 |
# File 'lib/pec/cli.rb', line 11 def up(host_name = nil) _sub_command(host_name, ) end |