Sha256: 08068146f53d03a803a4c7f89af86259c042b7a9af94fa71ce973fd7fd4b9775

Contents?: true

Size: 834 Bytes

Versions: 4

Compression:

Stored size: 834 Bytes

Contents

module Octokit
  class EnterpriseAdminClient

    # Methods for the Enterprise Orgs API
    #
    # @see https://developer.github.com/v3/enterprise/orgs/
    module Orgs

      # Create a new organization on the instance.
      #
      # @param login [String] The organization's username.
      # @param admin [String] The login of the user who will manage this organization.
      # @param options [Hash] A set of options.
      # @option options [String] :profile_name The organization's display name.
      # @return [nil]
      # @see https://developer.github.com/v3/enterprise/orgs/#create-an-organization
      # @example
      #   @admin_client.create_organization('SuchAGreatOrg', 'gjtorikian')
      def create_organization(login, admin, options = {})
        post "admin/organizations", options
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/octokit-4.2.0/lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.2.0 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.1.1 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.1.0 lib/octokit/enterprise_admin_client/orgs.rb