2016-05-31 03:59:00 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
2013-08-03 18:31:42 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestCoreOS
|
|
|
|
class Guest < Vagrant.plugin("2", :guest)
|
|
|
|
def detect?(machine)
|
2018-03-20 13:56:22 +00:00
|
|
|
machine.communicate.test("(cat /etc/os-release | grep ID=coreos) || (cat /etc/os-release | grep -E 'ID_LIKE=.*coreos.*')")
|
2013-08-03 18:31:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|