Class: Tenderloin::CLI
- Inherits:
-
Thor
- Object
- Thor
- Tenderloin::CLI
- Defined in:
- lib/tenderloin/cli.rb
Instance Method Summary collapse
-
#box(arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil) ⇒ Object
TODO - make the box command use real args/a subcommand.
- #destroy ⇒ Object
- #halt ⇒ Object
- #init ⇒ Object
- #ip ⇒ Object
- #jsondump ⇒ Object
- #provision ⇒ Object
- #reload ⇒ Object
- #ssh ⇒ Object
- #up ⇒ Object
Instance Method Details
#box(arg1 = nil, arg2 = nil, arg3 = nil, arg4 = nil) ⇒ Object
TODO - make the box command use real args/a subcommand
41 42 43 44 |
# File 'lib/tenderloin/cli.rb', line 41 def box(arg1=nil, arg2=nil, arg3=nil, arg4=nil) setup Tenderloin::Commands.box([arg1, arg2, arg3, arg4].compact) end |
#destroy ⇒ Object
34 35 36 37 |
# File 'lib/tenderloin/cli.rb', line 34 def destroy() setup Tenderloin::Commands.destroy end |
#halt ⇒ Object
28 29 30 31 |
# File 'lib/tenderloin/cli.rb', line 28 def halt() setup Tenderloin::Commands.halt end |
#init ⇒ Object
47 48 49 50 |
# File 'lib/tenderloin/cli.rb', line 47 def init() setup Tenderloin::Commands.init end |
#ip ⇒ Object
72 73 74 75 |
# File 'lib/tenderloin/cli.rb', line 72 def ip() setup Tenderloin::Commands.show_ip end |
#jsondump ⇒ Object
78 79 80 81 |
# File 'lib/tenderloin/cli.rb', line 78 def jsondump setup Tenderloin::Commands.json_dump end |
#provision ⇒ Object
59 60 61 62 |
# File 'lib/tenderloin/cli.rb', line 59 def provision() setup Tenderloin::Commands.provision end |
#reload ⇒ Object
53 54 55 56 |
# File 'lib/tenderloin/cli.rb', line 53 def reload() setup Tenderloin::Commands.reload end |
#ssh ⇒ Object
66 67 68 69 |
# File 'lib/tenderloin/cli.rb', line 66 def ssh() setup Tenderloin::Commands.ssh([:command]) end |
#up ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/tenderloin/cli.rb', line 17 def up() setup if ![:provision] Tenderloin::Commands.up(:no_provision) else Tenderloin::Commands.up end end |