Sha256: d10e26ea83aec634a1f71d59fc579a791730f58db12aa91b5cd22aea0a8ad704
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
module Kontena::Cli::Master class JoinCommand < Kontena::Command parameter "URL", "Kontena Master URL or name" parameter "INVITE_CODE", "Invitation code" option ['-n', '--name'], '[NAME]', 'Set server name' option ['-r', '--remote'], :flag, 'Do not try to open a browser' option ['-v', '--verbose'], :flag, 'Increase output verbosity' def execute params = [] params << "--join #{self.invite_code.shellescape}" params << "--remote" if self.remote? params << "--name #{self.name.shellescape}" if self.name params << "--verbose" if self.verbose? Kontena.run("master auth #{params.join(' ')} #{self.url.shellescape}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.16.0.pre2 | lib/kontena/cli/master/join_command.rb |
kontena-cli-0.16.0.pre1 | lib/kontena/cli/master/join_command.rb |