Class: Dor::StaticConfig::SslConfig
- Inherits:
-
Object
- Object
- Dor::StaticConfig::SslConfig
- Defined in:
- lib/dor/static_config/ssl_config.rb
Instance Method Summary collapse
- #cert_file(new_value = nil) ⇒ Object
- #configure(&block) ⇒ Object
-
#initialize(hash) ⇒ SslConfig
constructor
Represents the client side certificate configuration for Fedora 3.
- #key_file(new_value = nil) ⇒ Object
- #key_pass(new_value = nil) ⇒ Object
Constructor Details
#initialize(hash) ⇒ SslConfig
Represents the client side certificate configuration for Fedora 3
7 8 9 10 11 |
# File 'lib/dor/static_config/ssl_config.rb', line 7 def initialize(hash) @cert_file = hash.fetch(:cert_file) @key_file = hash.fetch(:key_file) @key_pass = hash.fetch(:key_pass) end |
Instance Method Details
#cert_file(new_value = nil) ⇒ Object
17 18 19 20 |
# File 'lib/dor/static_config/ssl_config.rb', line 17 def cert_file(new_value = nil) @cert_file = new_value if new_value @cert_file end |
#configure(&block) ⇒ Object
13 14 15 |
# File 'lib/dor/static_config/ssl_config.rb', line 13 def configure(&block) instance_eval(&block) end |
#key_file(new_value = nil) ⇒ Object
22 23 24 25 |
# File 'lib/dor/static_config/ssl_config.rb', line 22 def key_file(new_value = nil) @key_file = new_value if new_value @key_file end |
#key_pass(new_value = nil) ⇒ Object
27 28 29 30 |
# File 'lib/dor/static_config/ssl_config.rb', line 27 def key_pass(new_value = nil) @key_pass = new_value if new_value @key_pass end |