Class: Employer::Workshop
- Inherits:
-
Object
- Object
- Employer::Workshop
- Defined in:
- lib/employer/workshop.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.pipeline(filename) ⇒ Object
12 13 14 15 |
# File 'lib/employer/workshop.rb', line 12 def self.pipeline(filename) workshop = setup(File.read(filename), true) workshop.pipeline end |
Instance Method Details
#pipeline ⇒ Object
30 31 32 |
# File 'lib/employer/workshop.rb', line 30 def pipeline @boss.pipeline end |
#run ⇒ Object
17 18 19 |
# File 'lib/employer/workshop.rb', line 17 def run @boss.manage end |
#stop ⇒ Object
21 22 23 |
# File 'lib/employer/workshop.rb', line 21 def stop @boss.stop_managing end |
#stop_now ⇒ Object
25 26 27 28 |
# File 'lib/employer/workshop.rb', line 25 def stop_now @boss.stop_managing @boss.stop_employees end |