module Octokit::ManageGHESClient::ManageAPI
Methods for the Manage GitHub Enterprise Server API
Public Instance Methods
Source
# 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
Get information about the maintenance status of the GHES instance
@return [nil]
Source
# 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
Configure the maintenance mode of the GHES instance
@param maintenance [Hash] A hash configuration of the maintenance mode status @return [nil]
Also aliased as: configure_maintenance_mode