Merge pull request #6843 from velocity303/trisquel_6842

Add trisquel guest plugin as derivative of ubuntu - Issue #6842
This commit is contained in:
Seth Vargo 2016-02-03 10:12:24 -05:00
commit fe49c05ed0
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