Class: Cloudmunda::Launcher
- Inherits:
-
Object
- Object
- Cloudmunda::Launcher
- Defined in:
- lib/cloudmunda/cli/launcher.rb
Instance Attribute Summary collapse
-
#supervisor ⇒ Object
readonly
Returns the value of attribute supervisor.
Instance Method Summary collapse
-
#initialize ⇒ Launcher
constructor
A new instance of Launcher.
-
#quiet ⇒ Object
Tells the supervisor to stop processing any more jobs.
-
#start ⇒ Object
Starts the supervisor and job processors.
-
#stop ⇒ Object
Tells the supervisor to stop job processors.
Constructor Details
#initialize ⇒ Launcher
Returns a new instance of Launcher.
9 10 11 |
# File 'lib/cloudmunda/cli/launcher.rb', line 9 def initialize @supervisor = ::Cloudmunda::Supervisor.new end |
Instance Attribute Details
#supervisor ⇒ Object (readonly)
Returns the value of attribute supervisor.
7 8 9 |
# File 'lib/cloudmunda/cli/launcher.rb', line 7 def supervisor @supervisor end |
Instance Method Details
#quiet ⇒ Object
Tells the supervisor to stop processing any more jobs.
19 20 21 |
# File 'lib/cloudmunda/cli/launcher.rb', line 19 def quiet supervisor.quiet end |
#start ⇒ Object
Starts the supervisor and job processors.
14 15 16 |
# File 'lib/cloudmunda/cli/launcher.rb', line 14 def start supervisor.start end |
#stop ⇒ Object
Tells the supervisor to stop job processors. This method blocks until all processors are complete and stopped. It can take up to configurable timeout.
26 27 28 |
# File 'lib/cloudmunda/cli/launcher.rb', line 26 def stop supervisor.stop end |