vagrant/plugins/guests/amazon/guest.rb

10 lines
220 B
Ruby
Raw Normal View History

module VagrantPlugins
module GuestAmazon
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("grep 'Amazon Linux AMI' /etc/os-release")
end
end
end
end