Class: Tapjoy::LDAP::Group::Create

Inherits:
Object
  • Object
show all
Defined in:
lib/tapjoy/ldap/group/create.rb

Overview

Create LDAP group

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'lib/tapjoy/ldap/group/create.rb', line 6

def create
  # Check for errors
  Trollop::die :type, "argument must be 'user' or 'service'" unless ['user', 'service'].include?opts[:type]

  puts Tapjoy::LDAP::client.add(distinguished_name, ldap_attr)
end