633b4b9e51
MSP-11671 `bundler install --without coverage` will not install `simplecov`. Running without simplecov changes the average runtime of `rake cucumber:boot` from (n=13) 112.50 seconds to (n=10) 32.17 seconds (-71.41%). (-73.68% from 2c1203ba49d49603aec169eed053ab929ccdedc6.) Raw data: https://docs.google.com/spreadsheets/d/1vCRi_38Go3Wfq670eDCXMTSSXL1blSbk6NQsgpOqfYw/edit?usp=sharing.
44 lines
849 B
Ruby
44 lines
849 B
Ruby
require 'rails'
|
|
require File.expand_path('../boot', __FILE__)
|
|
|
|
all_environments = [
|
|
:development,
|
|
:production,
|
|
:test
|
|
]
|
|
|
|
Bundler.require(
|
|
*Rails.groups(
|
|
coverage: [:test],
|
|
db: all_environments,
|
|
pcap: all_environments
|
|
)
|
|
)
|
|
|
|
#
|
|
# Railties
|
|
#
|
|
|
|
# For compatibility with jquery-rails (and other engines that need action_view) in pro
|
|
require 'action_view/railtie'
|
|
|
|
#
|
|
# Project
|
|
#
|
|
|
|
require 'metasploit/framework/common_engine'
|
|
require 'metasploit/framework/database'
|
|
|
|
module Metasploit
|
|
module Framework
|
|
class Application < Rails::Application
|
|
include Metasploit::Framework::CommonEngine
|
|
|
|
config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)]
|
|
end
|
|
end
|
|
end
|
|
|
|
# Silence warnings about this defaulting to true
|
|
I18n.enforce_available_locales = true
|