Class: Cloudmunda::Launcher

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudmunda/cli/launcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLauncher

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

#supervisorObject (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

#quietObject

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

#startObject

Starts the supervisor and job processors.



14
15
16
# File 'lib/cloudmunda/cli/launcher.rb', line 14

def start
  supervisor.start
end

#stopObject

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