Sha256: 255f1b0b57da3561b3f2b2f7d24f84b6d6258dd90c20997afacf03c3cbc07912

Contents?: true

Size: 576 Bytes

Versions: 13

Compression:

Stored size: 576 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'init')
require File.join(File.dirname(__FILE__), '..', 'spec', 'database_integration_helper')
ActiveRecord::Base.logger = Logger.new(STDOUT)

class Step1 < Pipeline::Stage::Base
  def run
    puts("Started step 1")
    sleep 2
    puts("Finished step 1")
  end
end

class Step2 < Pipeline::Stage::Base
  def run
    puts("Started step 2")
    sleep 3
    puts("Finished step 2")
  end
end

class TwoStepPipeline < Pipeline::Base
  define_stages Step1 >> Step2
end

Pipeline.start(TwoStepPipeline.new)

Delayed::Worker.new.start

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
dtsato-pipeline-0.0.1 examples/two_step_pipeline.rb
dtsato-pipeline-0.0.2 examples/two_step_pipeline.rb
dtsato-pipeline-0.0.3 examples/two_step_pipeline.rb
dtsato-pipeline-0.0.5 examples/two_step_pipeline.rb
dtsato-pipeline-0.0.6 examples/two_step_pipeline.rb
dtsato-pipeline-0.0.7 examples/two_step_pipeline.rb
pipeline-0.0.7 examples/two_step_pipeline.rb
pipeline-0.0.6 examples/two_step_pipeline.rb
pipeline-0.0.4 examples/two_step_pipeline.rb
pipeline-0.0.5 examples/two_step_pipeline.rb
pipeline-0.0.1 examples/two_step_pipeline.rb
pipeline-0.0.2 examples/two_step_pipeline.rb
pipeline-0.0.3 examples/two_step_pipeline.rb