Merge pull request #3648 from chrisvire/fix/master/add_mint_guest
Add Linux Mint detection
This commit is contained in:
commit
9e5fffb7f1
|
@ -0,0 +1,13 @@
|
|||
require "vagrant"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/ubuntu/guest")
|
||||
|
||||
module VagrantPlugins
|
||||
module GuestMint
|
||||
class Guest < VagrantPlugins::GuestUbuntu::Guest
|
||||
def detect?(machine)
|
||||
machine.communicate.test("cat /etc/issue | grep 'Linux Mint'")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,15 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module GuestMint
|
||||
class Plugin < Vagrant.plugin("2")
|
||||
name "Mint guest"
|
||||
description "Mint guest support."
|
||||
|
||||
guest("mint", "ubuntu") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
Guest
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue