module Octokit::ManageGHESClient::ManageAPI

Methods for the Manage GitHub Enterprise Server API

@see developer.github.com/v3/enterprise-admin/manage-ghes

Public Instance Methods

configure_maintenance_mode(enabled, options = {})
maintenance_mode() click to toggle source

Get information about the maintenance status of the GHES instance

@return [nil]

# File lib/octokit/manage_ghes_client/manage_ghes.rb, line 13
def maintenance_mode
  conn = authenticated_client

  @last_response = conn.get('/manage/v1/maintenance')
end
set_maintenance_mode(enabled, options = {}) click to toggle source

Configure the maintenance mode of the GHES instance

@param maintenance [Hash] A hash configuration of the maintenance mode status @return [nil]

# File lib/octokit/manage_ghes_client/manage_ghes.rb, line 23
def set_maintenance_mode(enabled, options = {})
  conn = authenticated_client

  options[:enabled] = enabled
  @last_response = conn.post('/manage/v1/maintenance', options)
end
Also aliased as: configure_maintenance_mode