Class: Orchestrator::Logic::Manager

Inherits:
Core::ModuleManager show all
Defined in:
lib/orchestrator/logic/manager.rb

Instance Attribute Summary

Attributes inherited from Core::ModuleManager

#current_user, #instance, #logger, #settings, #stattrak, #status, #thread

Instance Method Summary collapse

Methods inherited from Core::ModuleManager

#add_subscription, #define_setting, #get_scheduler, #get_system, #inspect, #reloaded, #setting, #start, #stop, #subscribe, #trak, #unsubscribe

Constructor Details

#initialize(*args) ⇒ Manager

Returns a new instance of Manager.



4
5
6
7
8
9
10
# File 'lib/orchestrator/logic/manager.rb', line 4

def initialize(*args)
    super(*args)

    # Do we want to start here?
    # Should be ok.
    @thread.next_tick method(:start)
end

Instance Method Details

#system(user = nil) ⇒ Object

Access to other modules in the same control system



13
14
15
# File 'lib/orchestrator/logic/manager.rb', line 13

def system(user = nil)
    ::Orchestrator::Core::SystemProxy.new(@thread, @settings.control_system_id, nil, user)
end