Class: Jatai::CLI
- Inherits:
-
Thor
- Object
- Thor
- Jatai::CLI
- Defined in:
- lib/jatai/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #deploy ⇒ Object
- #destroy ⇒ Object
- #init ⇒ Object
- #login ⇒ Object
- #logs ⇒ Object
- #run_command(*command_parts) ⇒ Object
- #scale ⇒ Object
- #status ⇒ Object
- #up ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
20 21 22 |
# File 'lib/jatai/cli.rb', line 20 def self.exit_on_failure? true end |
Instance Method Details
#deploy ⇒ Object
41 42 43 |
# File 'lib/jatai/cli.rb', line 41 def deploy Commands::Deploy.new.execute() end |
#destroy ⇒ Object
102 103 104 |
# File 'lib/jatai/cli.rb', line 102 def destroy Commands::Destroy.new.execute end |
#login ⇒ Object
25 26 27 |
# File 'lib/jatai/cli.rb', line 25 def login Commands::Login.new.execute end |
#logs ⇒ Object
54 55 56 |
# File 'lib/jatai/cli.rb', line 54 def logs Commands::Logs.new.execute() end |
#run_command(*command_parts) ⇒ Object
48 49 50 |
# File 'lib/jatai/cli.rb', line 48 def run_command(*command_parts) Commands::Run.new.execute(command_parts) end |
#scale ⇒ Object
92 93 94 |
# File 'lib/jatai/cli.rb', line 92 def scale Commands::Scale.new.execute() end |