Class: GlusterFS::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/glusterfs/client.rb

Class Method Summary collapse

Class Method Details

.mount(volume_name, host, port = 24007, protocol = 'tcp') ⇒ Object



3
4
5
6
7
# File 'lib/glusterfs/client.rb', line 3

def mount(volume_name, host, port = 24007, protocol = 'tcp')
  volume = GlusterFS::Volume.new(volume_name)
  volume.mount(host, port, protocol)
  volume
end

.unmount(volume) ⇒ Object



9
10
11
# File 'lib/glusterfs/client.rb', line 9

def unmount(volume)
  GlusterFS.fini(volume.fs)
end