Class: LetsencryptPlugin::DatabaseStore

Inherits:
ChallengeStore show all
Defined in:
lib/letsencrypt_plugin/database_store.rb

Instance Method Summary collapse

Methods inherited from ChallengeStore

#initialize, #store

Constructor Details

This class inherits a constructor from LetsencryptPlugin::ChallengeStore

Instance Method Details

#store_contentObject



5
6
7
8
9
# File 'lib/letsencrypt_plugin/database_store.rb', line 5

def store_content
  ch = LetsencryptPlugin::Challenge.first
  ch = LetsencryptPlugin::Challenge.new if ch.nil?
  ch.update(response: @content)
end