glustercli-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
- 0
- 0
- 0
- 1
- 0
- 8 months ago
- April 24, 2024
License
GNU General Public License v3.0
Links
Synced at
Sat, 21 Dec 2024 22:33:32 GMT
Languages