lib/beaker/subcommands/subcommand_util.rb in beaker-3.9.0 vs lib/beaker/subcommands/subcommand_util.rb in beaker-3.10.0
- old
+ new
@@ -49,9 +49,10 @@
# Check for the presence of a Rakefile containing the require of the
# quick start tasks
def self.require_tasks()
rake_file = determine_rake_file()
+ FileUtils.touch(rake_file)
unless File.readlines(rake_file).grep(/#{BEAKER_REQUIRE}/).any?
File.open(rake_file, "a+") { |f| f.puts(BEAKER_REQUIRE) }
end
end