add trisquel guest plugin as derivative of ubuntu - Issue #6842

This commit is contained in:
James Jones 2016-01-10 08:21:16 -06:00
parent 005c9fb127
commit 6c861065de
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,11 @@
require "vagrant"
module VagrantPlugins
module GuestTrisquel
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("[ -x /usr/bin/lsb_release ] && /usr/bin/lsb_release -i 2>/dev/null | grep Trisquel")
end
end
end
end

View File

@ -0,0 +1,15 @@
require "vagrant"
module VagrantPlugins
module GuestTrisquel
class Plugin < Vagrant.plugin("2")
name "Trisquel guest"
description "Trisquel guest support."
guest("trisquel", "ubuntu") do
require File.expand_path("../guest", __FILE__)
Guest
end
end
end
end