Module: Wildcloud::Agent

Defined in:
lib/wildcloud/agent.rb,
lib/wildcloud/agent/version.rb,
lib/wildcloud/agent/heartbeat.rb,
lib/wildcloud/agent/load_monitor.rb,
lib/wildcloud/agent/component_manager.rb

Defined Under Namespace

Classes: Agent, ComponentManager, Heartbeat, LoadMonitor

Constant Summary collapse

VERSION =
'0.0.3'

Class Method Summary collapse

Class Method Details

.setupObject



122
123
124
125
126
127
128
# File 'lib/wildcloud/agent.rb', line 122

def self.setup
  if EventMachine.reactor_running?
    start
  else
    EventMachine.run(&method(:start))
  end
end

.startObject



130
131
132
# File 'lib/wildcloud/agent.rb', line 130

def self.start
  Wildcloud::Agent::Agent.instance
end