Module: EventedBluepill

Defined in:
lib/evented_bluepill/process_conditions/http.rb,
lib/evented_bluepill/dsl.rb,
lib/evented_bluepill/event.rb,
lib/evented_bluepill/group.rb,
lib/evented_bluepill/logger.rb,
lib/evented_bluepill/socket.rb,
lib/evented_bluepill/system.rb,
lib/evented_bluepill/options.rb,
lib/evented_bluepill/process.rb,
lib/evented_bluepill/trigger.rb,
lib/evented_bluepill/version.rb,
lib/evented_bluepill/controller.rb,
lib/evented_bluepill/application.rb,
lib/evented_bluepill/dsl/app_proxy.rb,
lib/evented_bluepill/dsl/process_proxy.rb,
lib/evented_bluepill/triggers/flapping.rb,
lib/evented_bluepill/application/client.rb,
lib/evented_bluepill/application/server.rb,
lib/evented_bluepill/process_conditions.rb,
lib/evented_bluepill/process_statistics.rb,
lib/evented_bluepill/dsl/process_factory.rb,
lib/evented_bluepill/util/rotational_array.rb,
lib/evented_bluepill/process_conditions/cpu_usage.rb,
lib/evented_bluepill/process_conditions/mem_usage.rb,
lib/evented_bluepill/process_conditions/always_true.rb,
lib/evented_bluepill/process_conditions/process_condition.rb

Overview

really this needs reworking

Defined Under Namespace

Modules: Application, Event, Options, ProcessConditions, Socket, System, Triggers, Util, VERSION Classes: AppProxy, Controller, Group, GroupTimer, Logger, Process, ProcessFactory, ProcessProxy, ProcessStatistics, ProcessTimer, Trigger, TriggerTimer

Class Method Summary collapse

Class Method Details

.application(app_name, options = {}) {|app_proxy| ... } ⇒ Object

Yields:

  • (app_proxy)


9
10
11
12
13
# File 'lib/evented_bluepill/dsl.rb', line 9

def self.application(app_name, options = {}, &block)
  app_proxy = AppProxy.new(app_name, options)
  yield(app_proxy)
  app_proxy.app.load
end