class Orchestra::DSL::Operations::Context
Attributes
steps[R]
Public Class Methods
evaluate(builder, &block)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 63 def self.evaluate builder, &block context = new builder context.instance_eval &block end
new(builder)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 70 def initialize builder @builder = builder end
Public Instance Methods
finally(name = :__finally__, &block)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 91 def finally name = :__finally__, &block @builder.add_step name, &block @builder.command = true self.result = name end
result(*args, &block)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 84 def result *args, &block args << :result if args.empty? step = @builder.add_step *args, &block name ||= step.provisions.fetch 0 self.result = name end
result=(result)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 79 def result= result @builder.result = result nil end
step(*args, &block)
click to toggle source
# File lib/orchestra/dsl/operations.rb, line 74 def step *args, &block @builder.add_step *args, &block nil end