Sha256: 876dd98a8f58ff90afc3802bfe83c8a53d2143d87c97821e71a54ea5324aee61
Contents?: true
Size: 379 Bytes
Versions: 155
Compression:
Stored size: 379 Bytes
Contents
require 'capistrano/command' # capistrano hack to allow us to run slightly different commands on multiple # hosts in parallel module Capistrano class Command def replace_placeholders(command, channel) command = command.gsub(/\$CAPISTRANO:HOST\$/, channel[:host]) command.gsub(/\$CAPISTRANO:VAR\$/, @options["hostvar_#{channel[:host]}"].to_s) end end end
Version data entries
155 entries across 155 versions & 7 rubygems