Explicitly require 'metasploit/credential' and 'metasploit_data_models'
By putting the db group into the metasploit-framework-db.gemspec, bundler no longer automatically required 'metasploit/credential' and 'metasploit_data_models' because gems, such as metasploit-framework-db, are expected to explictly require their dependencies.bug/bundler_fix
parent
a56a063b84
commit
3093ba8394
|
@ -80,13 +80,18 @@ module Metasploit
|
|||
# @return [void]
|
||||
def self.optionally_require_metasploit_db_gem_engines
|
||||
optionally(
|
||||
'metasploit/credential/engine',
|
||||
'metasploit/credential',
|
||||
'metasploit-credential not in the bundle',
|
||||
)
|
||||
) do
|
||||
require 'metasploit/credential/engine'
|
||||
end
|
||||
|
||||
optionally(
|
||||
'metasploit_data_models/engine',
|
||||
'metaspoit_data_models not in the bundle'
|
||||
)
|
||||
'metasploit_data_models',
|
||||
'metasploit_data_models not in the bundle'
|
||||
) do
|
||||
require 'metasploit_data_models/engine'
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue