ad41c445a4
Make a system call out to `which` to see if redir exists on the PATH before trying to forward ports. Raises a VagrantError if it does not.
25 lines
689 B
Ruby
25 lines
689 B
Ruby
require 'vagrant/errors'
|
|
|
|
module Vagrant
|
|
module LXC
|
|
module Errors
|
|
class ExecuteError < Vagrant::Errors::VagrantError
|
|
error_key(:lxc_execute_error)
|
|
end
|
|
|
|
# Box related errors
|
|
class TemplateFileMissing < Vagrant::Errors::VagrantError
|
|
error_key(:lxc_template_file_missing)
|
|
end
|
|
class RootFSTarballMissing < Vagrant::Errors::VagrantError
|
|
error_key(:lxc_invalid_box_version)
|
|
end
|
|
class IncompatibleBox < Vagrant::Errors::VagrantError
|
|
error_key(:lxc_incompatible_box)
|
|
end
|
|
class RedirNotInstalled < Vagrant::Errors::VagrantError
|
|
error_key(:lxc_redir_not_installed)
|
|
end
|
|
end
|
|
end
|
|
end
|