Sha256: c8196a806f193fbe15ef84d00ec3fa74c1eaebaf2e4bb408d812d076b651cb53
Contents?: true
Size: 709 Bytes
Versions: 29
Compression:
Stored size: 709 Bytes
Contents
require_relative '../common' module Kontena::Cli::Stacks::Registry class MakePublicCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::Stacks::Common include Kontena::Cli::Stacks::Common::RegistryNameParam banner "Changes Stack visibility private in the Kontena Cloud Stack Registry" option '--force', :flag, "Don't ask for confirmation" requires_current_account_token def execute unless force? confirm("Change stack #{pastel.cyan(stack_name)} visibility to public?") end spinner "Updating Stack #{pastel.cyan(stack_name)} visibility to public" do stacks_client.make_public(stack_name) end end end end
Version data entries
29 entries across 29 versions & 2 rubygems