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
krates-1.7.11 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.10 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.9 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.8 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.7 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.6 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.5 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.4 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.3 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.2 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.1 lib/kontena/cli/grids/users/add_command.rb
krates-1.7.0 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.9 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.8 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.7 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.6 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.5 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.4 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.3 lib/kontena/cli/grids/users/add_command.rb
krates-1.6.2 lib/kontena/cli/grids/users/add_command.rb