# File lib/blimpy/livery/puppet.rb, line 21 def preflight(box) # If we find Puppet in our default path, we don't really need to send # the bootstrap script again @puppet_exists = box.ssh_into('which puppet > /dev/null') unless @puppet_exists super(box) end unless box.ssh_into("test -f #{dir_name}/gempath.sh") gemhelper = File.expand_path(File.dirname(__FILE__) + "/../../../scripts/gempath.sh") box.scp_file(gemhelper, dir_name) end end