Module: Pipette::Xfs

Included in:
Pipette
Defined in:
lib/pipette/xfs.rb

Instance Method Summary collapse

Instance Method Details

#format(device) ⇒ Object



5
6
7
# File 'lib/pipette/xfs.rb', line 5

def format(device)
	run_command "mkfs.xfs", device
end

#growfs(device) ⇒ Object



14
15
16
# File 'lib/pipette/xfs.rb', line 14

def growfs(device)
	run_command "xfs_growfs", device
end

#mount(device, mountpoint) ⇒ Object



9
10
11
12
# File 'lib/pipette/xfs.rb', line 9

def mount(device, mountpoint)
	FileUtils.mkdir_p(mountpoint)
	run_command "mount", device, mountpoint
end

#umount(device) ⇒ Object



18
19
20
# File 'lib/pipette/xfs.rb', line 18

def umount(device)
	run_command "umount", device
end