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

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

Overview

Create LDAP group

Instance Method Summary collapse

Instance Method Details

#createObject



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

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

  puts Tapjoy::LDAP::API::Group.create(opts[:name], opts[:type])
end