Class: Capricorn::Actor
- Inherits:
-
Object
- Object
- Capricorn::Actor
- Includes:
- Actions
- Defined in:
- lib/capricorn/actor.rb,
lib/capricorn/actor/actions.rb
Overview
The actor class provides the mechanisme for scheduling the execution of seperate tasks.
Direct Known Subclasses
Capricorn::Actors::ApacheActor, Capricorn::Actors::BaseActor, Capricorn::Actors::MysqlActor, Capricorn::Actors::PassengerActor, Capricorn::Actors::PleskActor, Capricorn::Actors::Sqlite3Actor
Defined Under Namespace
Modules: Actions
Instance Attribute Summary collapse
-
#satellite ⇒ Object
readonly
Returns the value of attribute satellite.
-
#system ⇒ Object
readonly
Returns the value of attribute system.
Instance Method Summary collapse
-
#initialize(system, satellite) ⇒ Actor
constructor
create a new actor for the provided system and satellite.
Methods included from Actions
included, #run_callbacks!, #run_callbacks_in_fase!
Constructor Details
#initialize(system, satellite) ⇒ Actor
create a new actor for the provided system and satellite
17 18 19 20 |
# File 'lib/capricorn/actor.rb', line 17 def initialize(system, satellite) @system = system @satellite = satellite end |
Instance Attribute Details
#satellite ⇒ Object (readonly)
Returns the value of attribute satellite.
11 12 13 |
# File 'lib/capricorn/actor.rb', line 11 def satellite @satellite end |
#system ⇒ Object (readonly)
Returns the value of attribute system.
11 12 13 |
# File 'lib/capricorn/actor.rb', line 11 def system @system end |