Method: Beaker::Subcommands::SubcommandUtil.require_tasks

Defined in:
lib/beaker/subcommands/subcommand_util.rb

.require_tasksObject

Check for the presence of a Rakefile containing the require of the quick start tasks



52
53
54
55
56
57
# File 'lib/beaker/subcommands/subcommand_util.rb', line 52

def self.require_tasks()
  rake_file = determine_rake_file()
  unless File.readlines(rake_file).grep(/#{BEAKER_REQUIRE}/).any?
    File.open(rake_file, "a+") { |f| f.puts(BEAKER_REQUIRE) }
  end
end