Sha256: 037ece227c96e3fff9c04f2b28fbb9440ca3c3712d0866ea56e7d9a127b6ed9a

Contents?: true

Size: 650 Bytes

Versions: 36

Compression:

Stored size: 650 Bytes

Contents

class Kontena::Cli::CloudCommand < Kontena::Command
  include Kontena::Cli::Common

  subcommand "login", "Authenticate to Kontena Cloud", load_subcommand('cloud/login_command')
  subcommand "logout", "Logout from Kontena Cloud", load_subcommand('cloud/logout_command')
  subcommand "master", "Master specific commands", load_subcommand('cloud/master_command')

  def subcommand_missing(name)
    return super(name) unless %w(platform node org organization image-repository ir region token).include?(name)
    exit_with_error "The #{pastel.cyan('cloud')} plugin has not been installed. Use: #{pastel.cyan('kontena plugin install cloud')}"
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/cloud_command.rb
krates-1.7.10 lib/kontena/cli/cloud_command.rb
krates-1.7.9 lib/kontena/cli/cloud_command.rb
krates-1.7.8 lib/kontena/cli/cloud_command.rb
krates-1.7.7 lib/kontena/cli/cloud_command.rb
krates-1.7.6 lib/kontena/cli/cloud_command.rb
krates-1.7.5 lib/kontena/cli/cloud_command.rb
krates-1.7.4 lib/kontena/cli/cloud_command.rb
krates-1.7.3 lib/kontena/cli/cloud_command.rb
krates-1.7.2 lib/kontena/cli/cloud_command.rb
krates-1.7.1 lib/kontena/cli/cloud_command.rb
krates-1.7.0 lib/kontena/cli/cloud_command.rb
krates-1.6.9 lib/kontena/cli/cloud_command.rb
krates-1.6.8 lib/kontena/cli/cloud_command.rb
krates-1.6.7 lib/kontena/cli/cloud_command.rb
krates-1.6.6 lib/kontena/cli/cloud_command.rb
krates-1.6.5 lib/kontena/cli/cloud_command.rb
krates-1.6.4 lib/kontena/cli/cloud_command.rb
krates-1.6.3 lib/kontena/cli/cloud_command.rb
krates-1.6.2 lib/kontena/cli/cloud_command.rb