2012-04-19 05:20:45 +00:00
|
|
|
require "pathname"
|
2011-12-12 07:22:44 +00:00
|
|
|
|
2012-04-19 05:20:45 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module HostFedora
|
|
|
|
class Host < VagrantPlugins::HostLinux::Host
|
2011-12-12 07:22:44 +00:00
|
|
|
def self.match?
|
|
|
|
release_file = Pathname.new("/etc/redhat-release")
|
|
|
|
|
|
|
|
if release_file.exist?
|
|
|
|
release_file.open("r") do |f|
|
|
|
|
return true if f.gets =~ /^Fedora/
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2012-01-25 18:39:17 +00:00
|
|
|
# Normal, mid-range precedence.
|
|
|
|
def self.precedence
|
|
|
|
5
|
|
|
|
end
|
|
|
|
|
2011-08-28 06:47:13 +00:00
|
|
|
def initialize(*args)
|
|
|
|
super
|
|
|
|
|
|
|
|
@nfs_server_binary = "/etc/init.d/nfs"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|