Class: Vigil::TestPipeline
- Inherits:
-
Object
- Object
- Vigil::TestPipeline
- Defined in:
- lib/vigil/test_pipeline.rb
Instance Method Summary collapse
-
#initialize(revision, args = {}) ⇒ TestPipeline
constructor
A new instance of TestPipeline.
- #run ⇒ Object
Constructor Details
#initialize(revision, args = {}) ⇒ TestPipeline
Returns a new instance of TestPipeline.
4 5 6 7 |
# File 'lib/vigil/test_pipeline.rb', line 4 def initialize(revision, args={}) @revision = revision @plugman = Vigil.plugman end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vigil/test_pipeline.rb', line 9 def run @plugman.notify(:build_started) @plugman.notify(:task_started, 'VM1') sleep 5 @plugman.notify(:task_done, 'VM1') @plugman.notify(:task_started, 'VM2') sleep 5 @plugman.notify(:task_done, 'VM2') @plugman.notify(:task_started, 'VM3') sleep 5 @plugman.notify(:task_done, 'VM3') @plugman.notify(:task_started, 'UNIT') sleep 5 @plugman.notify(:task_done, 'UNIT') end |