# File lib/blimpy/livery/puppet.rb, line 53 def bootstrap_script File.expand_path(File.dirname(__FILE__) + "/../../../scripts/#{script}") end
# File lib/blimpy/livery/puppet.rb, line 35 def flight(box) unless @puppet_exists # This should get our puppet.sh bootstrap script run super(box) end # At this point we should be safe to actually invoke Puppet command = "puppet apply --modulepath=#{module_path} #{options} #{manifest_path}" run_sudo = '' run_sudo = 'sudo' if use_sudo?(box) box.ssh_into("cd #{dir_name} && #{run_sudo} ./gempath.sh #{command}") end
# File lib/blimpy/livery/puppet.rb, line 50 def postflight(box) end
# 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
Generated with the Darkfish Rdoc Generator 2.