Sha256: e867247520cf828efdb37b0018461e93e123e2793c918cbc385ce47fb779e361
Contents?: true
Size: 514 Bytes
Versions: 9
Compression:
Stored size: 514 Bytes
Contents
require_relative '../../common' module Kontena::Cli::Master::Users class RemoveCommand < Clamp::Command include Kontena::Cli::Common parameter "EMAIL ...", "List of emails" def execute require_api_url token = require_token email_list.each do |email| begin client(token).delete("users/#{email}") rescue => exc STDERR.puts "Failed to remove user #{email}".colorize(:red) STDERR.puts exc.message end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems