Class: God::Behavior

Class | God::Behavior
In: | lib/god/behavior.rb
Parent: | Object

### Methods

after_restart after_start after_stop before_restart before_start before_stop friendly_name generate valid?

### Included Modules

Configurable

### Attributes

watch | [RW] |

### Public Class methods

generate(kind, watch)

Generate a Behavior of the given kind. The proper class is found by camel casing the kind (which is given as an underscored symbol).

      +kind+ is the underscored symbol representing the class (e.g. foo_bar for God::Behaviors::FooBar)

### Public Instance methods

after_restart()
after_start()
after_stop()
before_restart()
before_start()
before_stop()
friendly_name()

Construct the friendly name of this Behavior, looks like:

Behavior FooBar on Watch ‘baz‘

valid?()

[Validate]