Class: Acmesmith::Storages::Base
- Inherits:
-
Object
- Object
- Acmesmith::Storages::Base
- Defined in:
- lib/acmesmith/storages/base.rb
Direct Known Subclasses
Defined Under Namespace
Classes: AlreadyExist, NotExist
Instance Method Summary collapse
- #get_account_key ⇒ Acmesmith::AccountKey
- #get_certificate(common_name, version: 'current') ⇒ Acmesmith::Certificate
-
#get_current_certificate_version(common_name) ⇒ String
Current version.
-
#initialize ⇒ Base
constructor
A new instance of Base.
-
#list_certificate_versions(common_name) ⇒ String
Array of versions.
-
#list_certificates ⇒ String
Array of common_names.
- #put_account_key(key, passphrase = nil) ⇒ Object
- #put_certificate(cert, passphrase = nil, update_current: true) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
7 8 |
# File 'lib/acmesmith/storages/base.rb', line 7 def initialize() end |
Instance Method Details
#get_account_key ⇒ Acmesmith::AccountKey
11 12 13 |
# File 'lib/acmesmith/storages/base.rb', line 11 def get_account_key raise NotImplementedError end |
#get_certificate(common_name, version: 'current') ⇒ Acmesmith::Certificate
31 32 33 |
# File 'lib/acmesmith/storages/base.rb', line 31 def get_certificate(common_name, version: 'current') raise NotImplementedError end |
#get_current_certificate_version(common_name) ⇒ String
Returns current version.
49 50 51 |
# File 'lib/acmesmith/storages/base.rb', line 49 def get_current_certificate_version(common_name) raise NotImplementedError end |
#list_certificate_versions(common_name) ⇒ String
Returns array of versions.
43 44 45 |
# File 'lib/acmesmith/storages/base.rb', line 43 def list_certificate_versions(common_name) raise NotImplementedError end |
#list_certificates ⇒ String
Returns array of common_names.
37 38 39 |
# File 'lib/acmesmith/storages/base.rb', line 37 def list_certificates raise NotImplementedError end |
#put_account_key(key, passphrase = nil) ⇒ Object
17 18 19 |
# File 'lib/acmesmith/storages/base.rb', line 17 def put_account_key(key, passphrase = nil) raise NotImplementedError end |
#put_certificate(cert, passphrase = nil, update_current: true) ⇒ Object
24 25 26 |
# File 'lib/acmesmith/storages/base.rb', line 24 def put_certificate(cert, passphrase = nil, update_current: true) raise NotImplementedError end |