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
Luke Imhoff 2014-11-05 09:25:50 -06:00
parent a56a063b84
commit 3093ba8394
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 11 additions and 6 deletions

View File

@ -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
#