Module: Gitlab::LetsEncrypt

Defined in:
lib/gitlab/lets_encrypt.rb,
lib/gitlab/lets_encrypt/order.rb,
lib/gitlab/lets_encrypt/client.rb,
lib/gitlab/lets_encrypt/challenge.rb

Defined Under Namespace

Classes: Challenge, Client, Order

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/gitlab/lets_encrypt.rb', line 5

def self.enabled?
  Gitlab::CurrentSettings.lets_encrypt_terms_of_service_accepted
end

.terms_of_service_urlObject



9
10
11
# File 'lib/gitlab/lets_encrypt.rb', line 9

def self.terms_of_service_url
  ::Gitlab::LetsEncrypt::Client.new.terms_of_service_url
end