class Kontena::Cli::Services::DeployCommand

Public Instance Methods

execute() click to toggle source
# File lib/kontena/cli/services/deploy_command.rb, line 13
def execute
  require_api_url
  token = require_token
  service_id = name
  data = {}
  data[:force] = true if force?
  spinner "Deploying service #{pastel.cyan(name)} " do
    deployment = deploy_service(token, name, data)
    wait_for_deploy_to_finish(token, deployment) if wait?
  end
end