Method: Msf::ModuleDataStore.new
- Defined in:
- lib/msf/core/module_data_store.rb
.new(m) ⇒ Object
Temporary forking logic for conditionally using the Msf::ModuleDatastoreWithFallbacks implementation.
This method replaces the default ‘ModuleDataStore.new` with the ability to instantiate the `ModuleDataStoreWithFallbacks` class instead, if the feature is enabled
17 18 19 20 21 22 23 24 25 |
# File 'lib/msf/core/module_data_store.rb', line 17 def self.new(m) if Msf::FeatureManager.instance.enabled?(Msf::FeatureManager::DATASTORE_FALLBACKS) return Msf::ModuleDataStoreWithFallbacks.new(m) end instance = allocate instance.send(:initialize, m) instance end |