Class: Kubert::Cli
- Inherits:
-
Thor
- Object
- Thor
- Kubert::Cli
- Defined in:
- lib/kubert/cli.rb
Instance Method Summary collapse
- #console ⇒ Object
- #context ⇒ Object
- #deploy ⇒ Object
- #env(*args) ⇒ Object
- #execute(*command) ⇒ Object
- #list(pod_type, status = :running) ⇒ Object
- #logs(pod_type = 'web', status = :running) ⇒ Object
- #rollback ⇒ Object
- #sandbox ⇒ Object
Instance Method Details
#console ⇒ Object
31 32 33 |
# File 'lib/kubert/cli.rb', line 31 def console execute(*Kubert.console_command) end |
#deploy ⇒ Object
56 57 58 |
# File 'lib/kubert/cli.rb', line 56 def deploy Deployment.perform() end |
#env(*args) ⇒ Object
61 62 63 |
# File 'lib/kubert/cli.rb', line 61 def env(*args) Kubert::EnvCli.start(args) end |
#execute(*command) ⇒ Object
37 38 39 |
# File 'lib/kubert/cli.rb', line 37 def execute(*command) Pods.execute(command) end |
#list(pod_type, status = :running) ⇒ Object
13 14 15 |
# File 'lib/kubert/cli.rb', line 13 def list(pod_type, status=:running) puts Pods.list(pod_type, status) end |
#logs(pod_type = 'web', status = :running) ⇒ Object
42 43 44 |
# File 'lib/kubert/cli.rb', line 42 def logs(pod_type='web', status= :running) Pods.logs(pod_type, status) end |
#rollback ⇒ Object
73 74 75 |
# File 'lib/kubert/cli.rb', line 73 def rollback Deployment.rollback() end |
#sandbox ⇒ Object
24 25 26 |
# File 'lib/kubert/cli.rb', line 24 def sandbox execute(*Kubert.console_command, "--sandbox") end |