Sha256: 3304d1a07fcb64c2c93c497582eff611959423db8f18724de642f8bfab923f31

Contents?: true

Size: 415 Bytes

Versions: 6

Compression:

Stored size: 415 Bytes

Contents

require_relative '../common'

module Kontena::Cli::Grids::Users
  class RemoveCommand < Clamp::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
      result = client(token).delete("grids/#{current_grid}/users/#{email}")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kontena-cli-0.13.4 lib/kontena/cli/grids/users/remove_command.rb
kontena-cli-0.13.3 lib/kontena/cli/grids/users/remove_command.rb
kontena-cli-0.13.2 lib/kontena/cli/grids/users/remove_command.rb
kontena-cli-0.13.1 lib/kontena/cli/grids/users/remove_command.rb
kontena-cli-0.13.0.1 lib/kontena/cli/grids/users/remove_command.rb
kontena-cli-0.13.0 lib/kontena/cli/grids/users/remove_command.rb