class PhaseShift::Runner

Run a defined pipeline

Attributes

options[R]

Public Class Methods

new(pipeline) click to toggle source
# File lib/phase_shift/runner.rb, line 8
def initialize(pipeline)
  @options = { pipeline: pipeline }
end

Public Instance Methods

pipeline() click to toggle source
# File lib/phase_shift/runner.rb, line 16
def pipeline
  @pipeline ||= Builder.parse_file "#{options[:pipeline]}.rb"
end
run() click to toggle source
# File lib/phase_shift/runner.rb, line 12
def run
  pipeline.call
end