jack_and_the_elastic_beanstalk 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a22c5da2a4721e357f8bcfab23dbcf1c4c34723a
|
4
|
+
data.tar.gz: faa2a997ea1a364fcc1c18d3e90441dc573a34b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc5dd2e6af169f5a906134c0c30c6ffe26337682f977bfcddd7f92f9ab5adb8862903e63f2a2d02b971984e41e0f112cc9a4966fc4479f40c273bafe9e1ef4cd
|
7
|
+
data.tar.gz: a11c97e31537efd585f9e5a57e0149aba95a35c515bb06ee868ef08700946a774da279538724502d782cf615873785ca8adc0b30393a62c9dcc32261ddf3d89b
|
@@ -247,40 +247,42 @@ module JackAndTheElasticBeanstalk
|
|
247
247
|
end
|
248
248
|
|
249
249
|
output_dir do |path|
|
250
|
-
|
250
|
+
runner.chdir(path) do
|
251
|
+
service.eb_init target_dir: path
|
251
252
|
|
252
|
-
|
253
|
-
|
253
|
+
runner.stdout.puts "Waiting for EB to complete deploy..."
|
254
|
+
sleep 30
|
254
255
|
|
255
|
-
|
256
|
+
start = Time.now
|
256
257
|
|
257
|
-
|
258
|
-
|
258
|
+
while true
|
259
|
+
dirs, _ = runner.capture3! "eb", "ssh", env.environment_name, "-c", "ls /var/app"
|
259
260
|
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
261
|
+
if dirs =~ /ondeck/
|
262
|
+
logger.info("jeb::cli") { "Waiting for deploy..." }
|
263
|
+
end
|
264
|
+
if dirs =~ /current/ && dirs !~ /ondeck/
|
265
|
+
break
|
266
|
+
end
|
267
|
+
if Time.now - start > options[:timeout]*60
|
268
|
+
raise "Timed out for waiting deploy..."
|
269
|
+
end
|
269
270
|
|
270
|
-
|
271
|
-
|
271
|
+
sleep 15
|
272
|
+
end
|
272
273
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
274
|
+
commandline = if options[:docker]
|
275
|
+
"sudo docker ps --filter=ancestor=aws_beanstalk/current-app --latest --format='{{.ID}}' | xargs -I{} sudo docker exec {} #{command.join(' ')}"
|
276
|
+
else
|
277
|
+
"cd /var/app/current && sudo -E -u webapp env PATH=$PATH #{command.join(' ')}"
|
278
|
+
end
|
279
|
+
out, err, status = runner.capture3 "eb", "ssh", env.environment_name, "-c", commandline
|
279
280
|
|
280
|
-
|
281
|
-
|
281
|
+
runner.stdout.print out
|
282
|
+
runner.stderr.print err
|
282
283
|
|
283
|
-
|
284
|
+
raise status.to_s unless status.success?
|
285
|
+
end
|
284
286
|
end
|
285
287
|
ensure
|
286
288
|
unless options[:keep]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jack_and_the_elastic_beanstalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|