Module Rudy::Routines
In: lib/rudy/routines/shutdown.rb
lib/rudy/routines/handlers/keypair.rb
lib/rudy/routines/handlers/depends.rb
lib/rudy/routines/handlers/user.rb
lib/rudy/routines/handlers/base.rb
lib/rudy/routines/handlers/group.rb
lib/rudy/routines/handlers/host.rb
lib/rudy/routines/handlers/script.rb
lib/rudy/routines/reboot.rb
lib/rudy/routines/startup.rb
lib/rudy/routines/passthrough.rb
lib/rudy/routines/base.rb
lib/rudy/routines.rb

Rudy::Routines

Every Rudy routine is associated to a handler. There are four standard handler types: Startup, Shutdown, Reboot, and Passthrough. The first three are associated to routines of the same same. All other routines are handled by Rudy::Routines::Passthrough.

An individual routine is made up of various actions. Each action is associated to one of the following handlers: depends, disk, script, user. See each handler for the list of actions it is responsible for.

Methods

Classes and Modules

Module Rudy::Routines::Handlers
Class Rudy::Routines::Base
Class Rudy::Routines::EmptyDepends
Class Rudy::Routines::GroupNotAvailable
Class Rudy::Routines::GroupNotRunning
Class Rudy::Routines::NoHandler
Class Rudy::Routines::NoRoutine
Class Rudy::Routines::Passthrough
Class Rudy::Routines::Reboot
Class Rudy::Routines::Shutdown
Class Rudy::Routines::Startup
Class Rudy::Routines::UnsupportedActions

Public Class methods

Add a routine handler to @@handler.

Add a routine handler to @@routine.

  • routine_name Literally the name of the routine that will have a special handler, like startup, shutdown, and reboot.
  • handler The class that will handle this routine. It must inherit Rudy::Routine::Base

Returns the value of handler.

Returns the value in the @@handler associated to the key name if it exists, otherwise it returns nil

Returns the value in the @@routine associated to the key routine_name if it exists, otherwise it returns Rudy::Routines::Passthrough

[Validate]