summaryrefslogtreecommitdiff
path: root/lib/gitlab/lets_encrypt/challenge.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/lets_encrypt/challenge.rb')
-rw-r--r--lib/gitlab/lets_encrypt/challenge.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/lets_encrypt/challenge.rb b/lib/gitlab/lets_encrypt/challenge.rb
new file mode 100644
index 00000000000..136268c974b
--- /dev/null
+++ b/lib/gitlab/lets_encrypt/challenge.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module LetsEncrypt
+ class Challenge
+ def initialize(acme_challenge)
+ @acme_challenge = acme_challenge
+ end
+
+ delegate :token, :file_content, :status, :request_validation, to: :acme_challenge
+
+ private
+
+ attr_reader :acme_challenge
+ end
+ end
+end