Skip to content

Commit 184f561

Browse files
committed
Fix #565
1 parent 096564c commit 184f561

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

lib/symfony2/symfony.rb

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
puts " Latest assets version: (#{assets_version})"
3939

4040
file_path = "#{latest_release}/#{app_config_path}/assets_version.yml"
41-
file_content = "parameters:\\n assets_version: #{assets_version}"
41+
file_content = "parameters:\n assets_version: #{assets_version}"
4242
run "echo '#{file_content}' | #{try_sudo} tee #{file_path}"
4343
capifony_puts_ok
4444
end
@@ -192,64 +192,64 @@
192192
capifony_puts_ok
193193
else
194194
capifony_pretty_print "--> Installing Composer dependencies"
195-
195+
196196
command = "#{try_sudo} sh -c 'cd #{latest_release} && SYMFONY_ENV=#{symfony_env_prod} #{composer_bin} install #{options}'"
197-
197+
198198
if interactive_mode
199-
199+
200200
input = ''
201201
print_wizard = false
202202
close_header = true
203203
run(command, { :pty => true, :eof => false }) do |channel, stream, data|
204-
204+
205205
# on normal output
206206
channel.on_data do |ch, data|
207-
207+
208208
# check if composer is waiting for user input
209209
print_wizard = data =~ /:[[:space:]]*$/
210-
210+
211211
# avoid echoing the user input
212212
if input.strip != data.strip and not print_wizard
213213
logger.debug data
214214
end
215-
215+
216216
# if input has been requested
217217
if print_wizard
218-
218+
219219
if close_header
220-
220+
221221
# finalize the info string
222222
capifony_puts_ok
223-
223+
224224
# and open a new section
225225
capifony_pretty_print "--> Updating parameters"
226226
puts if logger.level == Logger::IMPORTANT
227-
227+
228228
close_header = false
229229
end
230-
230+
231231
print data
232-
232+
233233
# capture the user input
234234
input = $stdin.gets
235-
235+
236236
# send it to the remote process
237237
channel.send_data(input)
238238
end
239239
end
240-
240+
241241
# on error
242242
channel.on_extended_data do |ch, data|
243243
warn "[err :: #{ch[:server]}] #{data}"
244244
end
245245
end
246-
246+
247247
capifony_pretty_print "--> Parameters updated" if not close_header
248-
248+
249249
else
250250
run command
251251
end
252-
252+
253253
capifony_puts_ok
254254
end
255255
end
@@ -267,64 +267,64 @@
267267
end
268268

269269
capifony_pretty_print "--> Updating Composer dependencies"
270-
270+
271271
command = "#{try_sudo} sh -c 'cd #{latest_release} && SYMFONY_ENV=#{symfony_env_prod} #{composer_bin} update #{options}'"
272-
272+
273273
if interactive_mode
274-
274+
275275
input = ''
276276
print_wizard = false
277277
close_header = true
278278
run(command, { :pty => true, :eof => false }) do |channel, stream, data|
279-
279+
280280
# on normal output
281281
channel.on_data do |ch, data|
282-
282+
283283
# check if composer is waiting for user input
284284
print_wizard = data =~ /:[[:space:]]*$/
285-
285+
286286
# avoid echoing the user input
287287
if input.strip != data.strip and not print_wizard
288288
logger.debug data
289289
end
290-
290+
291291
# if input has been requested
292292
if print_wizard
293-
293+
294294
if close_header
295-
295+
296296
# finalize the info string
297297
capifony_puts_ok
298-
298+
299299
# and open a new section
300300
capifony_pretty_print "--> Updating parameters"
301301
puts if logger.level == Logger::IMPORTANT
302-
302+
303303
close_header = false
304304
end
305-
305+
306306
print data
307-
307+
308308
# capture the user input
309309
input = $stdin.gets
310-
310+
311311
# send it to the remote process
312312
channel.send_data(input)
313313
end
314314
end
315-
315+
316316
# on error
317317
channel.on_extended_data do |ch, data|
318318
warn "[err :: #{ch[:server]}] #{data}"
319319
end
320320
end
321-
321+
322322
capifony_pretty_print "--> Parameters updated" if not close_header
323-
323+
324324
else
325325
run command
326326
end
327-
327+
328328
capifony_puts_ok
329329
end
330330

0 commit comments

Comments
 (0)