Ravn::Tactical::
Operation class
Superclass | Object |
Included Modules |
|
A Command-pattern class for the Ravn-Tactical change (task) queue
Attributes
- config R
The configuration of the
Operation
to be run, as a Symbol Hash.
Public Class Methods
Create an Operation
for the specified change
.
Inheritance hook – enable the constructor for subclasses.
Create a new Operation
targeting the specified node
and using the given config
.
Return a block for Roda::RodaPlugins::TypecastParams validation for this operation. Defaults to an empty block (no valid config parameters)
Returns true
if there is an Operation
with the given name
.
Return a Regexp made up of a union of all valid operation types.
Return an Array of all valid operation types.
Public Instance Methods
Do any teardown on the Control after the Operation
is run. It is passed the node
(the Ravn::Tactical::Node
it was run on), and a response
(a HTTPX::Response) of the service call. If this method returns a falsey
value, the Change’s transaction is aborted.
Do any preparation on the Control before the Operation
is run on the specified node
. If this method returns a falsey value, abort the Change. Returns true
by default.
Ravn::Inspection API – Return the details portion of the inspect output.
Run the operation, returning a truthy value if successful.
Return the type
of the Operation
.