vagrant/plugins/guests/coreos/guest.rb

12 lines
294 B
Ruby
Raw Normal View History

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)
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