Compare commits
No commits in common. "9f3f3b24c18c7f5f855cf10a76098447207d6f71" and "fd9829c283b2b880fe48753b1b67007dfc345be5" have entirely different histories.
9f3f3b24c1
...
fd9829c283
5 changed files with 15 additions and 11 deletions
|
@ -101,7 +101,7 @@ module GX
|
||||||
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
|
raise Models::InvalidFilesystemError.new("Invalid filesystem") if filesystem.nil?
|
||||||
|
|
||||||
mount_or_umount(filesystem)
|
mount_or_umount(filesystem)
|
||||||
auto_open(filesystem) if filesystem.mounted? && @config.auto_open
|
auto_open(filesystem) if @config.auto_open
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -42,14 +42,9 @@ module GX::Models::Concerns
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
result_status = yield
|
yield
|
||||||
|
|
||||||
if result_status.success?
|
puts "Models #{name} is now available on #{mount_point_safe}".colorize(:green)
|
||||||
puts "Models #{name} is now available on #{mount_point_safe}".colorize(:green)
|
|
||||||
else
|
|
||||||
puts "Error mounting the vault".colorize(:red)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,10 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
return process.wait
|
unless process.wait.success?
|
||||||
|
puts "Error mounting the vault".colorize(:red)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,7 +32,10 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
return process.wait
|
unless process.wait.success?
|
||||||
|
puts "Error mounting the filesystem".colorize(:red)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,7 +39,10 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
return process.wait
|
unless process.wait.success?
|
||||||
|
puts "Error mounting the filesystem".colorize(:red)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue