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
262 263 264 |
# File 'lib/dk/task.rb', line 262 def ssh_cmd_str(task, *args) task.instance_eval{ ssh_cmd_str(*args) } end |
#test_runner(task_class, args = nil) ⇒ Object
252 253 254 255 256 |
# File 'lib/dk/task.rb', line 252 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
258 259 260 |
# File 'lib/dk/task.rb', line 258 def test_task(task_class, args = nil) test_runner(task_class, args).task end |