mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Remove trailing newlines from commands to prevent trailing backslash #2141
git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@2267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
db6fb3ed70
commit
8d1c1129b9
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Remove trailing newlines from commands to prevent trailing backslash #2141
|
||||
|
||||
* Default parameters work correctly with the generator #2218 [Scott Barron]
|
||||
|
||||
* Attempt to require 'rubygems' explicitly when running the switchtower utility #2134
|
||||
|
|
|
@ -7,7 +7,7 @@ module SwitchTower
|
|||
|
||||
def initialize(servers, command, callback, options, actor) #:nodoc:
|
||||
@servers = servers
|
||||
@command = command.gsub(/\r?\n/, "\\\n")
|
||||
@command = command.strip.gsub(/\r?\n/, "\\\n")
|
||||
@callback = callback
|
||||
@options = options
|
||||
@actor = actor
|
||||
|
|
Loading…
Reference in a new issue