Class: Capistrano::DockerCloud::Client
- Inherits:
-
Object
- Object
- Capistrano::DockerCloud::Client
- Includes:
- Helpers::CollectionHelper
- Defined in:
- lib/capistrano/docker-cloud/client.rb
Instance Method Summary collapse
- #deploy ⇒ Object
-
#initialize(capistrano_instance) ⇒ Client
constructor
A new instance of Client.
Methods included from Helpers::CollectionHelper
Constructor Details
#initialize(capistrano_instance) ⇒ Client
Returns a new instance of Client.
11 12 13 |
# File 'lib/capistrano/docker-cloud/client.rb', line 11 def initialize(capistrano_instance) @capistrano = capistrano_instance end |
Instance Method Details
#deploy ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/capistrano/docker-cloud/client.rb', line 15 def deploy # Ensure all is fine before to deploy ensure_credential_exists! ensure_docker_image_tag_to_deploy_is_defined! prepare_dockercloud_connection ensure_stack_exists_with_name!(stage_name) ensure_no_container_with_image_to_deploy_already_exists! ensure_stack_has_a_load_balancer! # Deploy the image create_new_service! start_created_service! wait_service_to_boot! switch_load_balancer_linked_service! end |