Sha256: 2f20dc142a964fa3de877b7d5bfa605b800e18fe7284ff7cf67e1d3b0199532c
Contents?: true
Size: 698 Bytes
Versions: 78
Compression:
Stored size: 698 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 login #{params.join(' ')} #{self.url.shellescape}") end end end
Version data entries
78 entries across 78 versions & 1 rubygems