class TFModTest::ModuleHelper
Public Class Methods
install_tasks()
click to toggle source
# File lib/tfmodtest/module_helper.rb, line 17 def install_tasks new.install end
Public Instance Methods
install()
click to toggle source
# File lib/tfmodtest/module_helper.rb, line 22 def install task default: [:preflight] def run_task(task_name) TMT::ModuleTestRepository.each do |m| m.run_task(task_name) end end desc 'Runs all the tests' task :preflight do run_task('preflight') end desc 'Destroy any remaining infrastructure' task :destroy do run_task('destroy') end desc 'Cleans up the project (after destroying infrastructure)' task :clean do run_task('clean') end end
run_task(task_name)
click to toggle source
# File lib/tfmodtest/module_helper.rb, line 25 def run_task(task_name) TMT::ModuleTestRepository.each do |m| m.run_task(task_name) end end