Sha256: 05c62a529767132d5f40c0eb8dbea70ef6a945a244bd70fa74fbfd8b26173506

Contents?: true

Size: 898 Bytes

Versions: 22

Compression:

Stored size: 898 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 = {})
        options[:login] = login
        options[:admin] = admin
        post "admin/organizations", options
      end

    end
  end
end

Version data entries

22 entries across 18 versions & 3 rubygems

Version Path
tdiary-5.0.9 vendor/bundle/gems/octokit-4.9.0/lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.9.0 lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/octokit-4.8.0/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/octokit-4.8.0/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.8 vendor/bundle/gems/octokit-4.8.0/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.7 vendor/bundle/gems/octokit-4.8.0/lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.8.0 lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.6 vendor/bundle/gems/octokit-4.7.0/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.5 vendor/bundle/gems/octokit-4.7.0/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/octokit-4.6.2/lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.5 vendor/bundle/gems/octokit-4.6.2/lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.7.0 lib/octokit/enterprise_admin_client/orgs.rb
octodoggy-4.6.2 lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.4 vendor/bundle/gems/octokit-4.6.2/lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.6.2 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.6.1 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.6.0 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.4.1 lib/octokit/enterprise_admin_client/orgs.rb
octokit-4.4.0 lib/octokit/enterprise_admin_client/orgs.rb
tdiary-5.0.2 vendor/bundle/gems/octokit-4.3.0/lib/octokit/enterprise_admin_client/orgs.rb