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