Sha256: 98b3fc8031fc63af475b3309658146aeaca5591befcb499684e79eec34b728c3
Contents?: true
Size: 981 Bytes
Versions: 67
Compression:
Stored size: 981 Bytes
Contents
module Kontena::Cli::Master class InitCloudCommand < Kontena::Command include Kontena::Cli::Common banner "Configures the current Kontena Master to use Kontena Cloud services and authentication" option '--force', :flag, "Don't ask questions" option '--cloud-master-id', '[ID]', "Use existing cloud master ID" option '--provider', '[NAME]', "Set master provider name" option '--version', '[VERSION]', "Set master version" requires_current_master requires_current_master_token requires_current_account_token def execute args = ["--current"] args << "--force" if self.force? args += ["--cloud-master-id", self.cloud_master_id.shellescape] if self.cloud_master_id args += ["--provider", self.provider.shellescape] if self.provider args += ["--version", self.version.shellescape] if self.version Kontena.run("cloud master add #{args.join(' ')}") end end end
Version data entries
67 entries across 67 versions & 1 rubygems