1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

use raw file write for cuke

the write_file method from aruba
was not working properly anymore, replaced it
with a raw ruby file write
This commit is contained in:
David Maloney 2016-05-12 11:17:53 -05:00
parent 7edaa2abcc
commit 11a672e31d
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2

View File

@ -6,7 +6,7 @@ end
Given /^the project "database.yml" exists with:$/ do |file_content|
Metasploit::Framework::Database::Cucumber.backup_project_configurations
write_file(Metasploit::Framework::Database::Cucumber.project_configurations_path, file_content)
File.open(Metasploit::Framework::Database::Cucumber.project_configurations_path, 'wb') { |file| file.write(file_content) }
end
After do