Sha256: 6aaa05d26c66dc5c331d6742f4ed155169540d5cbfdc0ff014fb5ddfbbe5d88f
Contents?: true
Size: 438 Bytes
Versions: 14
Compression:
Stored size: 438 Bytes
Contents
require_relative 'common' module Kontena::Cli::Stacks class DeployCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Common parameter "NAME", "Stack name" def execute require_api_url require_token deploy_stack(name) end private def deploy_stack client(token).post("stacks/#{current_grid}/#{name}/deploy", {}) end end end
Version data entries
14 entries across 14 versions & 1 rubygems