Class: Tapjoy::LDAP::CLI::Group::Create
- Inherits:
-
Object
- Object
- Tapjoy::LDAP::CLI::Group::Create
- Defined in:
- lib/tapjoy/ldap/cli/group/create.rb
Overview
Create LDAP group
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 |
# File 'lib/tapjoy/ldap/cli/group/create.rb', line 7 def create # Check for errors Optimist.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 |