Sha256: 4b71bdc2edddc84f7b9ca6c6316efb5fb87ca9187b1b96f7f8dea2710f9502dc
Contents?: true
Size: 440 Bytes
Versions: 21
Compression:
Stored size: 440 Bytes
Contents
require_relative 'common' module Kontena::Cli::Stacks class DeployCommand < Kontena::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
21 entries across 21 versions & 1 rubygems