Compare commits
2 commits
bba30c5222
...
dace7bf9f4
Author | SHA1 | Date | |
---|---|---|---|
dace7bf9f4 | |||
283606c280 |
1 changed files with 7 additions and 1 deletions
|
@ -21,7 +21,13 @@ module GX
|
||||||
module GenericFilesystem
|
module GenericFilesystem
|
||||||
def unmount
|
def unmount
|
||||||
system("fusermount -u #{mount_dir.shellescape}")
|
system("fusermount -u #{mount_dir.shellescape}")
|
||||||
|
fusermount_status = $?
|
||||||
|
|
||||||
|
if fusermount_status.success? == 0
|
||||||
puts "Filesystem #{name} is now closed.".colorize(:green)
|
puts "Filesystem #{name} is now closed.".colorize(:green)
|
||||||
|
else
|
||||||
|
puts "Error: Unable to unmount filesystem #{name} (exit code: #{fusermount_status.exit_code}).".colorize(:red)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def mount(&block)
|
def mount(&block)
|
||||||
|
|
Loading…
Reference in a new issue