class GlusterCLI::Volume
- GlusterCLI::Volume
- Reference
- Object
Defined in:
volume.crInstance Method Summary
-
#delete
Delete a Gluster Volume
-
#info(status = false) : VolumeInfo
Get Volume info and realtime Status
-
#option_reset(keys : Array(String))
Reset Multiple Volume Options
-
#option_reset(key : String)
Reset a Volume Option
-
#option_set(key : String, value : String)
Set a Volume Option
-
#option_set(key_values : Hash(String, String))
Set Multiple Volume Options
-
#start(force = false)
Start a Gluster Volume
-
#stop(force = false)
Stop a Gluster Volume
Instance Method Detail
Get Volume info and realtime Status
Example:
cli.volume("gvol1").info
cli.volume("gvol1").info(status: true)
def option_reset(keys : Array(String))
#
Reset Multiple Volume Options
Example:
cli.volume("gvol1").option_reset(["changelog.changelog"])
def option_reset(key : String)
#
Reset a Volume Option
Example:
cli.volume("gvol1").option_reset("changelog.changelog")
def option_set(key : String, value : String)
#
Set a Volume Option
Example:
cli.volume("gvol1").option_set("changelog.changelog", "on")
def option_set(key_values : Hash(String, String))
#
Set Multiple Volume Options
Example:
cli.volume("gvol1").option_set({"changelog.changelog" => "on"})
def start(force = false)
#
Start a Gluster Volume
Example:
cli.volume("gvol1").start
# To start with *force* option
cli.volume("gvol1").start(force: true)
def stop(force = false)
#
Stop a Gluster Volume
Example:
cli.volume("gvol1").stop
# To stop with *force* option
cli.volume("gvol1").stop(force: true)