Class: Certstore::Loader
- Inherits:
-
Object
- Object
- Certstore::Loader
- Defined in:
- lib/certstore/loader.rb
Defined Under Namespace
Classes: InvalidStoreNameError
Instance Method Summary collapse
-
#initialize(store_name, enterprise: true) ⇒ Loader
constructor
A new instance of Loader.
- #initialize_raw ⇒ Object
- #valid_logical_store_list ⇒ Object
Constructor Details
#initialize(store_name, enterprise: true) ⇒ Loader
Returns a new instance of Loader.
24 25 26 27 28 29 |
# File 'lib/certstore/loader.rb', line 24 def initialize(store_name, enterprise: true) unless store_name && valid_logical_store_list.include?(store_name.upcase) raise InvalidStoreNameError, "'#{store_name}' is not a valid logical store name" end initialize_raw(store_name, enterprise) end |
Instance Method Details
#initialize_raw ⇒ Object
20 |
# File 'lib/certstore/loader.rb', line 20 alias_method :initialize_raw, :initialize |
#valid_logical_store_list ⇒ Object
31 32 33 |
# File 'lib/certstore/loader.rb', line 31 def valid_logical_store_list %w[MY CA ROOT AUTHROOT DISALLOWED SPC TRUST TRUSTEDPEOPLE TRUSTEDPUBLISHER CLIENTAUTHISSUER TRUSTEDDEVICES SMARTCARDROOT WEBHOSTING REMOTE\ DESKTOP] end |