fix a thing

This commit is contained in:
John Bintz 2012-05-15 14:17:50 -04:00
parent 15b973ae78
commit b5b2bf2b90
1 changed files with 1 additions and 1 deletions

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