glustercli-crystal

GlusterFS CLI Bindings - Crystal

GlusterFS CLI bindings - Crystal

Super Simple

require "glustercli"

cli = GlusterCLI::CLI.new

# List all Peers
puts cli.list_peers

# List all Volumes information
puts cli.list_volumes

# List all Volumes with status
puts cli.list_volumes(status: true)

# Info of a single Volume
puts cli.volume("gvol1").info

# Volume info with status info
puts cli.volume("gvol1").info(status: true)

# JSON output
puts cli.list_peers.to_json
puts cli.list_volumes(status: true).to_json

Installation

Add this to your application's shard.yml:

dependencies:
  glustercli:
    github: aravindavk/glustercli-crystal
Repository

glustercli-crystal

Owner
Statistic
  • 2
  • 2
  • 0
  • 1
  • 0
  • 5 months ago
  • June 1, 2021
License

GNU General Public License v3.0

Links
Synced at

Sun, 22 Dec 2024 05:56:53 GMT

Languages