Class: Capistrano::Command
- Inherits:
-
Object
- Object
- Capistrano::Command
- Defined in:
- lib/capistrano/hostcmd.rb
Instance Method Summary collapse
Instance Method Details
#replace_placeholders(command, channel) ⇒ Object
7 8 9 10 |
# File 'lib/capistrano/hostcmd.rb', line 7 def replace_placeholders(command, channel) command = command.gsub(/\$CAPISTRANO:HOST\$/, channel[:host]) command.gsub(/\$CAPISTRANO:VAR\$/, @options["hostvar_#{channel[:host]}"].to_s) end |