1 2 3 4 5 6 7 8
# Checks if systems runs inside vagrant require 'facter' Facter.add(:vagrant) do setcode do FileTest.exists?('/vagrant') end end