cool updates, bro

This commit is contained in:
John Bintz 2012-05-14 16:12:46 -04:00
parent 171b4d3546
commit 7addee4f6f
1 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,20 @@ module PuppetStandaloneMashup
BASE = Pathname(File.expand_path('../../..', __FILE__)) BASE = Pathname(File.expand_path('../../..', __FILE__))
end 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 Capistrano::Configuration.instance.load do
_cset(:puppet_dir) { '/tmp/puppet' } _cset(:puppet_dir) { '/tmp/puppet' }
_cset(:additional_puppet_bin_path) { nil } _cset(:additional_puppet_bin_path) { nil }