class Omnitest::Psychic::Workflow
Attributes
commands[R]
psychic[R]
Public Class Methods
new(psychic, name = 'workflow', options = {}, &block)
click to toggle source
# File lib/omnitest/psychic/workflow.rb, line 6 def initialize(psychic, name = 'workflow', options = {}, &block) @psychic = psychic @name = name @options = options @commands = [] instance_eval &block if block_given? end
Public Instance Methods
command()
click to toggle source
# File lib/omnitest/psychic/workflow.rb, line 18 def command @commands.map(&:command).join("\n") + "\n" end
execute(_params = {}, shell_opts = {}, *extra_args)
click to toggle source
# File lib/omnitest/psychic/workflow.rb, line 22 def execute(_params = {}, shell_opts = {}, *extra_args) @psychic.execute(command, shell_opts, *extra_args) end
task(name, *args)
click to toggle source
# File lib/omnitest/psychic/workflow.rb, line 14 def task(name, *args) @commands << psychic.task(name, *args) end