--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: pid_file
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: running
  rw: RW
class_methods: []

comment: 
- !ruby/struct:SM::Flow::P 
  body: "Condition Symbol :process_running Type: Poll"
- !ruby/struct:SM::Flow::P 
  body: Trigger when a process is running or not running depending on attributes.
- !ruby/struct:SM::Flow::P 
  body: Paramaters
- !ruby/struct:SM::Flow::VERB 
  body: "  Required\n    <tt>pid_file</tt> is the pid file of the process in question. Automatically\n               populated for Watches.\n    +running&quot; specifies whether you want to trigger if the process is\n              running (true) or whether it is not running (false)\n"
- !ruby/struct:SM::Flow::P 
  body: Examples
- !ruby/struct:SM::Flow::P 
  body: "Trigger if process IS NOT running (from a Watch):"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:process_running) do |c|\n    c.running = false\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Trigger if process IS running (from a Watch):"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:process_running) do |c|\n    c.running = true\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Non-Watch Tasks must specify a PID file:"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:process_running) do |c|\n    c.running = false\n    c.pid_file = &quot;/var/run/mongrel.3000.pid&quot;\n  end\n"
constants: []

full_name: God::Conditions::ProcessRunning
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: pid
- !ruby/object:RI::MethodSummary 
  name: test
- !ruby/object:RI::MethodSummary 
  name: valid?
name: ProcessRunning
superclass: PollCondition
