vagrant/plugins/guests/darwin/guest.rb

16 lines
436 B
Ruby
Raw Normal View History

require 'vagrant/util/template_renderer'
module VagrantPlugins
module GuestDarwin
2013-08-06 14:18:12 +00:00
# A general Vagrant system implementation for OS X (ie. "Darwin").
#
2013-08-06 14:18:12 +00:00
# Contributed by: - Brian Johnson <b2jrock@gmail.com>
# - Tim Sutton <tim@synthist.net>
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("uname -s | grep 'Darwin'")
end
end
end
end