Class: ContainerShip::CLI
- Inherits:
-
Thor
- Object
- Thor
- ContainerShip::CLI
- Defined in:
- lib/container_ship/cli.rb
Instance Method Summary collapse
- #exec(cluster_name, service_name, environment, build_number) ⇒ Object
- #init(cluster_name) ⇒ Object
- #ship(cluster_name, service_name, environment, build_number) ⇒ Object
- #version ⇒ Object
Instance Method Details
#exec(cluster_name, service_name, environment, build_number) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/container_ship/cli.rb', line 22 def exec(cluster_name, service_name, environment, build_number) timeout = ['timeout'] no_wait = ['no_wait'] Command::ExecCommand.new.run( cluster_name, service_name, environment, build_number, timeout: timeout, no_wait: no_wait ) end |
#init(cluster_name) ⇒ Object
9 10 11 |
# File 'lib/container_ship/cli.rb', line 9 def init(cluster_name) Command::InitCommand.new.run(cluster_name) end |
#ship(cluster_name, service_name, environment, build_number) ⇒ Object
14 15 16 |
# File 'lib/container_ship/cli.rb', line 14 def ship(cluster_name, service_name, environment, build_number) Command::ShipCommand.new.run(cluster_name, service_name, environment, build_number) end |
#version ⇒ Object
33 34 35 |
# File 'lib/container_ship/cli.rb', line 33 def version say ContainerShip::VERSION end |