Class: ContainerShip::Command::ShipCommand
- Inherits:
-
Object
- Object
- ContainerShip::Command::ShipCommand
- Includes:
- Modules::Docker, Modules::Ecs, Modules::PrintTask
- Defined in:
- lib/container_ship/command/ship_command.rb
Instance Method Summary collapse
Methods included from Modules::Ecs
#register, #run_task, #update_service, #wait_task
Methods included from Modules::Docker
Instance Method Details
#run(cluster_name, service_name, environment, build_number) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/container_ship/command/ship_command.rb', line 18 def run(cluster_name, service_name, environment, build_number) task_definition = TaskDefinition.new( cluster_name, 'services', service_name, environment, build_number ) push_image task_definition revision = print_around_task('Registering task definition... ') do register task_definition end print_around_task('Updating service... ') do update_service task_definition, revision end end |