Sha256: b52033747c5f1761e82d8219c83b6f9f2bd4ef8894b2207ffb5c14603b9278eb

Contents?: true

Size: 430 Bytes

Versions: 158

Compression:

Stored size: 430 Bytes

Contents

require_relative '../common'

module Kontena::Cli::Grids::Users
  class AddCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Kontena::Cli::Grids::Common

    parameter "EMAIL", "Email address"

    def execute
      require_api_url
      token = require_token
      data = { email: email }
      client(token).post("grids/#{current_grid}/users", data)
    end
  end
end

Version data entries

158 entries across 158 versions & 2 rubygems

Version Path
kontena-cli-1.4.1.rc1 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.3.5 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre7 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre6 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre5 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre4 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre3 lib/kontena/cli/grids/users/add_command.rb
kontena-cli-1.4.0.pre2 lib/kontena/cli/grids/users/add_command.rb