2014-08-28 20:20:53 +00:00
|
|
|
require 'metasploit/framework/database/cucumber'
|
2014-08-28 02:36:23 +00:00
|
|
|
|
2014-08-28 03:02:16 +00:00
|
|
|
Given /^the project "database.yml" does not exist$/ do
|
2014-08-28 20:20:53 +00:00
|
|
|
Metasploit::Framework::Database::Cucumber.backup_project_configurations
|
2014-08-28 03:02:16 +00:00
|
|
|
end
|
|
|
|
|
2014-08-28 02:38:46 +00:00
|
|
|
Given /^the project "database.yml" exists with:$/ do |file_content|
|
2014-08-28 20:20:53 +00:00
|
|
|
Metasploit::Framework::Database::Cucumber.backup_project_configurations
|
|
|
|
write_file(Metasploit::Framework::Database::Cucumber.project_configurations_path, file_content)
|
2014-08-28 02:36:23 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
After do
|
2014-08-28 20:20:53 +00:00
|
|
|
Metasploit::Framework::Database::Cucumber.restore_project_configurations
|
2014-08-28 02:36:23 +00:00
|
|
|
end
|