diff --git a/plugins/guests/trisquel/guest.rb b/plugins/guests/trisquel/guest.rb new file mode 100644 index 000000000..3db9c8b38 --- /dev/null +++ b/plugins/guests/trisquel/guest.rb @@ -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 diff --git a/plugins/guests/trisquel/plugin.rb b/plugins/guests/trisquel/plugin.rb new file mode 100644 index 000000000..3cb00a89d --- /dev/null +++ b/plugins/guests/trisquel/plugin.rb @@ -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