Method: Kontena::Cli::Services::ScaleCommand#execute

Defined in:
lib/kontena/cli/services/scale_command.rb

#executeObject



13
14
15
16
17
18
19
# 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