Class: Tapjoy::LDAP::CLI::User::Delete

Inherits:
Object
  • Object
show all
Defined in:
lib/tapjoy/ldap/cli/user/delete.rb

Overview

Manipulates data to a format usable by the API structure for user removal

Instance Method Summary collapse

Instance Method Details

#deleteObject

Make the API call to remove an LDAP user



9
10
11
12
13
# File 'lib/tapjoy/ldap/cli/user/delete.rb', line 9

def delete
  verify_arguments
  confirm unless opts[:force]
  puts Tapjoy::LDAP::API::User.destroy(opts[:username], opts[:type])
end