class GlusterCLI::Volume

Defined in:

volume.cr

Instance Method Summary

Instance Method Detail

def delete #

Delete a Gluster Volume

Example:

cli.volume("gvol1").delete

[View source]
def info(status = false) : VolumeInfo #

Get Volume info and realtime Status

Example:

cli.volume("gvol1").info
cli.volume("gvol1").info(status: true)

[View source]
def option_reset(keys : Array(String)) #

Reset Multiple Volume Options

Example:

cli.volume("gvol1").option_reset(["changelog.changelog"])

[View source]
def option_reset(key : String) #

Reset a Volume Option

Example:

cli.volume("gvol1").option_reset("changelog.changelog")

[View source]
def option_set(key : String, value : String) #

Set a Volume Option

Example:

cli.volume("gvol1").option_set("changelog.changelog", "on")

[View source]
def option_set(key_values : Hash(String, String)) #

Set Multiple Volume Options

Example:

cli.volume("gvol1").option_set({"changelog.changelog" => "on"})

[View source]
def start(force = false) #

Start a Gluster Volume

Example:

cli.volume("gvol1").start

# To start with *force* option
cli.volume("gvol1").start(force: true)

[View source]
def stop(force = false) #

Stop a Gluster Volume

Example:

cli.volume("gvol1").stop

# To stop with *force* option
cli.volume("gvol1").stop(force: true)

[View source]