Module: Cognizant

Defined in:
lib/cognizant.rb,
lib/cognizant/log.rb,
lib/cognizant/shell.rb,
lib/cognizant/client.rb,
lib/cognizant/daemon.rb,
lib/cognizant/system.rb,
lib/cognizant/process.rb,
lib/cognizant/version.rb,
lib/cognizant/commands.rb,
lib/cognizant/interface.rb,
lib/cognizant/system/ps.rb,
lib/cognizant/controller.rb,
lib/cognizant/application.rb,
lib/cognizant/process/pid.rb,
lib/cognizant/commands/use.rb,
lib/cognizant/commands/help.rb,
lib/cognizant/commands/load.rb,
lib/cognizant/system/signal.rb,
lib/cognizant/process/status.rb,
lib/cognizant/commands/status.rb,
lib/cognizant/process/actions.rb,
lib/cognizant/commands/actions.rb,
lib/cognizant/process/children.rb,
lib/cognizant/process/triggers.rb,
lib/cognizant/commands/shutdown.rb,
lib/cognizant/process/dsl_proxy.rb,
lib/cognizant/process/execution.rb,
lib/cognizant/process/attributes.rb,
lib/cognizant/process/conditions.rb,
lib/cognizant/process/actions/stop.rb,
lib/cognizant/application/dsl_proxy.rb,
lib/cognizant/process/actions/start.rb,
lib/cognizant/util/rotational_array.rb,
lib/cognizant/process/actions/restart.rb,
lib/cognizant/process/trigger_delegate.rb,
lib/cognizant/process/triggers/trigger.rb,
lib/cognizant/process/triggers/flapping.rb,
lib/cognizant/process/condition_delegate.rb,
lib/cognizant/process/triggers/transition.rb,
lib/cognizant/process/conditions/cpu_usage.rb,
lib/cognizant/process/conditions/always_true.rb,
lib/cognizant/util/dsl_proxy_methods_handler.rb,
lib/cognizant/process/conditions/memory_usage.rb,
lib/cognizant/process/conditions/poll_condition.rb

Defined Under Namespace

Modules: Commands, Controller, Log, System, Util Classes: Application, Client, Daemon, Interface, Process, Shell

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.application(application_name = nil, attributes = {}, &block) ⇒ Object



9
10
11
# File 'lib/cognizant/application.rb', line 9

def self.application(application_name = nil, attributes = {}, &block)
  Cognizant::Controller.daemon.create_application(application_name, attributes, &block)
end