guests/dragonflybsd: add detection for DragonFly BSD

This commit is contained in:
Chris Roberts 2016-08-10 08:54:56 -07:00
parent 571659a5d1
commit 6cdab917de
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,9 @@
module VagrantPlugins
module GuestDragonFlyBSD
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("uname -s | grep -i 'DragonFly'")
end
end
end
end

View File

@ -0,0 +1,15 @@
require "vagrant"
module VagrantPlugins
module GuestDragonFlyBSD
class Plugin < Vagrant.plugin("2")
name "DragonFly BSD guest"
description "DragonFly BSD guest support."
guest(:dragonflybsd, :bsd) do
require_relative "guest"
Guest
end
end
end
end