class Kontena::Cli::Services::ScaleCommand

Public Instance Methods

execute() click to toggle source
# File lib/kontena/cli/services/scale_command.rb, line 13
def execute
  token = require_token
  spinner "Scaling #{pastel.cyan(name)} to #{instances} instances " do
    deployment = scale_service(token, name, instances)
    wait_for_deploy_to_finish(token, deployment) if wait?
  end
end