Module: Dk::Task::TestHelpers::InstanceMethods
- Defined in:
- lib/dk/task.rb
Instance Method Summary collapse
- #ssh_cmd_str(task, *args) ⇒ Object
- #test_runner(task_class, args = nil) ⇒ Object
- #test_task(task_class, args = nil) ⇒ Object
Instance Method Details
#ssh_cmd_str(task, *args) ⇒ Object
256 257 258 |
# File 'lib/dk/task.rb', line 256 def ssh_cmd_str(task, *args) task.instance_eval{ ssh_cmd_str(*args) } end |
#test_runner(task_class, args = nil) ⇒ Object
246 247 248 249 250 |
# File 'lib/dk/task.rb', line 246 def test_runner(task_class, args = nil) Dk::TestRunner.new(args).tap do |runner| runner.task_class = task_class end end |
#test_task(task_class, args = nil) ⇒ Object
252 253 254 |
# File 'lib/dk/task.rb', line 252 def test_task(task_class, args = nil) test_runner(task_class, args).task end |