Module: Octokit::EnterpriseAdminClient::Orgs

Included in:
Octokit::EnterpriseAdminClient
Defined in:
lib/octokit/enterprise_admin_client/orgs.rb

Overview

Methods for the Enterprise Orgs API

Instance Method Summary collapse

Instance Method Details

#create_organization(login, admin, options = {}) ⇒ nil

Create a new organization on the instance.

Examples:

@admin_client.create_organization('SuchAGreatOrg', 'gjtorikian')

Parameters:

  • login (String)

    The organization’s username.

  • admin (String)

    The login of the user who will manage this organization.

  • options (Hash) (defaults to: {})

    A set of options.

Options Hash (options):

  • :profile_name (String)

    The organization’s display name.

Returns:

  • (nil)

See Also:



19
20
21
22
23
# File 'lib/octokit/enterprise_admin_client/orgs.rb', line 19

def create_organization(, admin, options = {})
  options[:login] = 
  options[:admin] = admin
  post 'admin/organizations', options
end