Class: Kontena::Cli::Apps::DeployCommand
- Inherits:
-
Kontena::Command
- Object
- Kontena::Command
- Kontena::Cli::Apps::DeployCommand
- Includes:
- Common, DockerHelper, Common, GridOptions
- Defined in:
- lib/kontena/cli/apps/deploy_command.rb
Instance Attribute Summary collapse
-
#deploy_queue ⇒ Object
readonly
Returns the value of attribute deploy_queue.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
Methods included from DockerHelper
#build_docker_image, #dockerfile_exist?, #image_exist?, #process_docker_images, #push_docker_image, #run_pre_build_hook, #validate_image_name
Methods included from Common
#abort_on_validation_errors, #app_json, #create_yml, #current_dir, #display_notifications, #generate_services, #hint_on_validation_notifications, #prefixed_name, #project_name_from_yaml, #read_yaml, #require_config_file, #service_exists?, #service_prefix, #services_from_yaml, #set_env_variables, #token, #valid_addons
Instance Attribute Details
#deploy_queue ⇒ Object (readonly)
Returns the value of attribute deploy_queue.
21 22 23 |
# File 'lib/kontena/cli/apps/deploy_command.rb', line 21 def deploy_queue @deploy_queue end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
21 22 23 |
# File 'lib/kontena/cli/apps/deploy_command.rb', line 21 def services @services end |
Instance Method Details
#execute ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/kontena/cli/apps/deploy_command.rb', line 23 def execute require_api_url require_token require_config_file(filename) @deploy_queue = [] @services = services_from_yaml(filename, service_list, service_prefix) process_docker_images(services) if !no_build? create_or_update_services(services) deploy_services(deploy_queue) end |