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
|
2016-05-12 16:17:53 +00:00
|
|
|
File.open(Metasploit::Framework::Database::Cucumber.project_configurations_path, 'wb') { |file| file.write(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
|