cool updates, bro

This commit is contained in:
John Bintz 2012-05-14 16:12:46 -04:00
parent 171b4d3546
commit 7addee4f6f

View File

@ -10,6 +10,20 @@ module PuppetStandaloneMashup
BASE = Pathname(File.expand_path('../../..', __FILE__))
end
require 'capistrano/command'
module Capistrano
class Command
alias :_replace_placeholders :replace_placeholders
def replace_placeholders(command, channel)
command = _replace_placeholders(command, channel)
command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname])
command
end
end
end
Capistrano::Configuration.instance.load do
_cset(:puppet_dir) { '/tmp/puppet' }
_cset(:additional_puppet_bin_path) { nil }