Module: Beaker::DSL::Helpers::RakeHelpers

Defined in:
lib/beaker-puppet/helpers/rake_helpers.rb

Overview

Methods that help you interact with rake during ci setup

Class Method Summary collapse

Class Method Details

.load_tasks(beaker_root = File.expand_path("#{__dir__}/../../..")) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/beaker-puppet/helpers/rake_helpers.rb', line 7

def load_tasks(beaker_root = File.expand_path("#{__dir__}/../../.."))
  task_dir = File.join(beaker_root, 'tasks')
  tasks = [
    'ci.rake',
  ]

  tasks.each do |task|
    load File.join(task_dir, task)
  end
end