Sha256: f329c158a691b19ece84a1d1d5913f6e9c8e992084b4576a77013ab5c098f6c6
Contents?: true
Size: 771 Bytes
Versions: 29
Compression:
Stored size: 771 Bytes
Contents
require_relative '../common' module Kontena::Cli::Stacks::Registry class CreateCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::Stacks::Common include Kontena::Cli::Stacks::Common::RegistryNameParam banner "Creates a new Stack to Kontena Stack Registry" option '--private', :flag, "Create as private", attribute_name: :is_private requires_current_account_token def execute exit_with_error "Can't create a stack with a version number" unless stack_name.version.nil? spinner "Creating #{is_private? ? pastel.yellow('private') : 'public'} stack #{pastel.cyan(stack_name)} in Kontena Stack Registry" do stacks_client.create(stack_name, is_private: is_private?) end end end end
Version data entries
29 entries across 29 versions & 2 rubygems