vagrant/plugins/guests/freebsd/guest.rb

15 lines
397 B
Ruby
Raw Normal View History

require 'vagrant/util/template_renderer'
module VagrantPlugins
module GuestFreeBSD
2011-01-14 14:12:43 +00:00
# A general Vagrant system implementation for "freebsd".
#
# Contributed by Kenneth Vestergaard <kvs@binarysolutions.dk>
2012-11-07 05:14:45 +00:00
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("uname -s | grep 'FreeBSD'", {shell: "sh"})
end
2011-01-14 14:12:43 +00:00
end
end
end