capifony 2.8.5 → 2.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/capifony +1 -1
- data/lib/symfony2/symfony.rb +37 -37
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cbc9d49249bfb59e805bbc8a8799cd6de7fae467
|
|
4
|
+
data.tar.gz: c76b15be47057c05cdc4e1809d4ec224ef89c8a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36792985b0cd34970d057aba272e5a6abeab5b8f4a8ab0f377a67130049a8f5cccfd087f86f75ad5837a7d46189f5f7049d78239341eeb06e69ac416fc97525e
|
|
7
|
+
data.tar.gz: 72c6269697ff253df96b110a5701d6dcbf2c17412f58604e9efb0901eda6803f51b9bdf41002eea20645b7abf243cf1bff74557391b80b51ed0a1a65fdda5f4f
|
data/CHANGELOG.md
CHANGED
data/bin/capifony
CHANGED
data/lib/symfony2/symfony.rb
CHANGED
|
@@ -38,7 +38,7 @@ namespace :symfony do
|
|
|
38
38
|
puts " Latest assets version: (#{assets_version})"
|
|
39
39
|
|
|
40
40
|
file_path = "#{latest_release}/#{app_config_path}/assets_version.yml"
|
|
41
|
-
file_content = "parameters
|
|
41
|
+
file_content = "parameters:\n assets_version: #{assets_version}"
|
|
42
42
|
run "echo '#{file_content}' | #{try_sudo} tee #{file_path}"
|
|
43
43
|
capifony_puts_ok
|
|
44
44
|
end
|
|
@@ -192,64 +192,64 @@ namespace :symfony do
|
|
|
192
192
|
capifony_puts_ok
|
|
193
193
|
else
|
|
194
194
|
capifony_pretty_print "--> Installing Composer dependencies"
|
|
195
|
-
|
|
195
|
+
|
|
196
196
|
command = "#{try_sudo} sh -c 'cd #{latest_release} && SYMFONY_ENV=#{symfony_env_prod} #{composer_bin} install #{options}'"
|
|
197
|
-
|
|
197
|
+
|
|
198
198
|
if interactive_mode
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
input = ''
|
|
201
201
|
print_wizard = false
|
|
202
202
|
close_header = true
|
|
203
203
|
run(command, { :pty => true, :eof => false }) do |channel, stream, data|
|
|
204
|
-
|
|
204
|
+
|
|
205
205
|
# on normal output
|
|
206
206
|
channel.on_data do |ch, data|
|
|
207
|
-
|
|
207
|
+
|
|
208
208
|
# check if composer is waiting for user input
|
|
209
209
|
print_wizard = data =~ /:[[:space:]]*$/
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
# avoid echoing the user input
|
|
212
212
|
if input.strip != data.strip and not print_wizard
|
|
213
213
|
logger.debug data
|
|
214
214
|
end
|
|
215
|
-
|
|
215
|
+
|
|
216
216
|
# if input has been requested
|
|
217
217
|
if print_wizard
|
|
218
|
-
|
|
218
|
+
|
|
219
219
|
if close_header
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
# finalize the info string
|
|
222
222
|
capifony_puts_ok
|
|
223
|
-
|
|
223
|
+
|
|
224
224
|
# and open a new section
|
|
225
225
|
capifony_pretty_print "--> Updating parameters"
|
|
226
226
|
puts if logger.level == Logger::IMPORTANT
|
|
227
|
-
|
|
227
|
+
|
|
228
228
|
close_header = false
|
|
229
229
|
end
|
|
230
|
-
|
|
230
|
+
|
|
231
231
|
print data
|
|
232
|
-
|
|
232
|
+
|
|
233
233
|
# capture the user input
|
|
234
234
|
input = $stdin.gets
|
|
235
|
-
|
|
235
|
+
|
|
236
236
|
# send it to the remote process
|
|
237
237
|
channel.send_data(input)
|
|
238
238
|
end
|
|
239
239
|
end
|
|
240
|
-
|
|
240
|
+
|
|
241
241
|
# on error
|
|
242
242
|
channel.on_extended_data do |ch, data|
|
|
243
243
|
warn "[err :: #{ch[:server]}] #{data}"
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
|
|
246
|
+
|
|
247
247
|
capifony_pretty_print "--> Parameters updated" if not close_header
|
|
248
|
-
|
|
248
|
+
|
|
249
249
|
else
|
|
250
250
|
run command
|
|
251
251
|
end
|
|
252
|
-
|
|
252
|
+
|
|
253
253
|
capifony_puts_ok
|
|
254
254
|
end
|
|
255
255
|
end
|
|
@@ -267,64 +267,64 @@ namespace :symfony do
|
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
capifony_pretty_print "--> Updating Composer dependencies"
|
|
270
|
-
|
|
270
|
+
|
|
271
271
|
command = "#{try_sudo} sh -c 'cd #{latest_release} && SYMFONY_ENV=#{symfony_env_prod} #{composer_bin} update #{options}'"
|
|
272
|
-
|
|
272
|
+
|
|
273
273
|
if interactive_mode
|
|
274
|
-
|
|
274
|
+
|
|
275
275
|
input = ''
|
|
276
276
|
print_wizard = false
|
|
277
277
|
close_header = true
|
|
278
278
|
run(command, { :pty => true, :eof => false }) do |channel, stream, data|
|
|
279
|
-
|
|
279
|
+
|
|
280
280
|
# on normal output
|
|
281
281
|
channel.on_data do |ch, data|
|
|
282
|
-
|
|
282
|
+
|
|
283
283
|
# check if composer is waiting for user input
|
|
284
284
|
print_wizard = data =~ /:[[:space:]]*$/
|
|
285
|
-
|
|
285
|
+
|
|
286
286
|
# avoid echoing the user input
|
|
287
287
|
if input.strip != data.strip and not print_wizard
|
|
288
288
|
logger.debug data
|
|
289
289
|
end
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
# if input has been requested
|
|
292
292
|
if print_wizard
|
|
293
|
-
|
|
293
|
+
|
|
294
294
|
if close_header
|
|
295
|
-
|
|
295
|
+
|
|
296
296
|
# finalize the info string
|
|
297
297
|
capifony_puts_ok
|
|
298
|
-
|
|
298
|
+
|
|
299
299
|
# and open a new section
|
|
300
300
|
capifony_pretty_print "--> Updating parameters"
|
|
301
301
|
puts if logger.level == Logger::IMPORTANT
|
|
302
|
-
|
|
302
|
+
|
|
303
303
|
close_header = false
|
|
304
304
|
end
|
|
305
|
-
|
|
305
|
+
|
|
306
306
|
print data
|
|
307
|
-
|
|
307
|
+
|
|
308
308
|
# capture the user input
|
|
309
309
|
input = $stdin.gets
|
|
310
|
-
|
|
310
|
+
|
|
311
311
|
# send it to the remote process
|
|
312
312
|
channel.send_data(input)
|
|
313
313
|
end
|
|
314
314
|
end
|
|
315
|
-
|
|
315
|
+
|
|
316
316
|
# on error
|
|
317
317
|
channel.on_extended_data do |ch, data|
|
|
318
318
|
warn "[err :: #{ch[:server]}] #{data}"
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
|
-
|
|
321
|
+
|
|
322
322
|
capifony_pretty_print "--> Parameters updated" if not close_header
|
|
323
|
-
|
|
323
|
+
|
|
324
324
|
else
|
|
325
325
|
run command
|
|
326
326
|
end
|
|
327
|
-
|
|
327
|
+
|
|
328
328
|
capifony_puts_ok
|
|
329
329
|
end
|
|
330
330
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capifony
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.8.
|
|
4
|
+
version: 2.8.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Kudryashov
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-04-
|
|
12
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|