fix a thing

This commit is contained in:
John Bintz 2012-05-15 14:17:50 -04:00
parent 15b973ae78
commit b5b2bf2b90

View File

@ -18,7 +18,7 @@ module Capistrano
def replace_placeholders(command, channel) def replace_placeholders(command, channel)
command = _replace_placeholders(command, channel) command = _replace_placeholders(command, channel)
command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname]) command.gsub!('$CAPISTRANO:TARGETHOSTNAME$', channel[:server].options[:target_hostname] || '')
command command
end end
end end