Class: TFModTest::ModuleHelper
- Inherits:
-
Object
- Object
- TFModTest::ModuleHelper
- Includes:
- Rake::DSL
- Defined in:
- lib/tfmodtest/module_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.install_tasks ⇒ Object
17 18 19 |
# File 'lib/tfmodtest/module_helper.rb', line 17 def install_tasks new.install end |
Instance Method Details
#install ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# 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) ⇒ Object
25 26 27 28 29 |
# 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 |