GlusterCLI
Gluster CLI bindings
Create CLI instance and execute Gluster commands.
Example:
require "glustercli"
cli = GlusterCLI::CLI.new
peers = cli.list_peers
volumes = cli.list_volumes
# List Volumes with realtime status
volumes = cli.list_volumes(status: true)
Constants
HEALTH_DEGRADED = "Degraded"
HEALTH_DOWN = "Down"
HEALTH_PARTIAL = "Partial"
HEALTH_UP = "Up"
PROCESS_EXPORTER = "gluster-metrics-exporter"
PROCESS_GLUSTERD = "glusterd"
PROCESS_GLUSTERFS = "glusterfs"
PROCESS_GLUSTERFSD = "glusterfsd"
PROCESS_SHD = "glustershd"
STATE_CREATED = "Created"
STATE_STARTED = "Started"
STATE_STOPPED = "Stopped"
TYPE_DISPERSE = "Disperse"
TYPE_REPLICATE = "Replicate"
Class methods
parse_error(data)
Source