Ravn::Tactical::
Kit module
Extended With |
|
Kit-level operations API
Constants
- DEFAULT_HEADERS
Headers to add to every request
- SERVICE_PATH
The base path of the infrastructure services
- URI_PROTOCOL
The type of URI to use for requests
Public Class Methods
Add a new node
to the kit. Raises an exception on failure.
Archive the specified mission
(which must be the current mission) across the whole kit. If a block is given, it is yielded to before resetting Helios and starting the download of the resulting archives.
Create a new mission with the specified name
for the current kit’s nodes, optionally using one of the template
missions.
Make a new_mission
the current one across the whole kit. If it’s already the current one, just update it.
Permanently remove a previously archived mission from disk.
Replace the current_mission
with a new_mission
across the whole kit.
Build an HTTP request of the specified method
and resource
for the given node
. If parameters
are given, they will be encoded as JSON and sent as the request body. Returns the response if it’s successful, or raises a Ravn::Tactical::BackendError if the request fails.
Reset cached connections/sessions.
Run the operation on the node indicated by the given change
.
Run the specified operation
(a Ravn::Tactical::Operation
) on the specified node
via the infrastructure API and return the response (HTTPX::Response).
The Pathname of the infrastructure service
Set the current mission to the mission with the specified mission_id
, archiving any existing current mission.
Get a URL for accessing the specified resource
of the infrastructure service of the specified node
.