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: ad67c04e049ab4aad0ecc6215a18f45591bc5257
4
- data.tar.gz: aa68a46b3e1da28d44cc71e148c317bc0ee9c8a7
3
+ metadata.gz: a22c5da2a4721e357f8bcfab23dbcf1c4c34723a
4
+ data.tar.gz: faa2a997ea1a364fcc1c18d3e90441dc573a34b5
5
5
  SHA512:
6
- metadata.gz: 3720789cffa903b5373516c709bc446ef710ef565077f3821faf4a9e4d157793a3ba6771d4afec51f3e5d6ffc21728d8199c774ad1ec92ea7be7a6d627c2fbe5
7
- data.tar.gz: 6fcd873aa318e54f9a56785f03a9009da89271320a40f994d5890d6f42f75175544f0f7c6c3b8eda6819edccc3db129a34f2aee501e97ba79c39fbdb0ceaf6b0
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
- service.eb_init target_dir: path
250
+ runner.chdir(path) do
251
+ service.eb_init target_dir: path
251
252
 
252
- runner.stdout.puts "Waiting for EB to complete deploy..."
253
- sleep 30
253
+ runner.stdout.puts "Waiting for EB to complete deploy..."
254
+ sleep 30
254
255
 
255
- start = Time.now
256
+ start = Time.now
256
257
 
257
- while true
258
- dirs, _ = runner.capture3! "eb", "ssh", env.environment_name, "-c", "ls /var/app"
258
+ while true
259
+ dirs, _ = runner.capture3! "eb", "ssh", env.environment_name, "-c", "ls /var/app"
259
260
 
260
- if dirs =~ /ondeck/
261
- logger.info("jeb::cli") { "Waiting for deploy..." }
262
- end
263
- if dirs =~ /current/ && dirs !~ /ondeck/
264
- break
265
- end
266
- if Time.now - start > options[:timeout]*60
267
- raise "Timed out for waiting deploy..."
268
- end
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
- sleep 15
271
- end
271
+ sleep 15
272
+ end
272
273
 
273
- commandline = if options[:docker]
274
- "sudo docker ps --filter=ancestor=aws_beanstalk/current-app --latest --format='{{.ID}}' | xargs -I{} sudo docker exec {} #{command.join(' ')}"
275
- else
276
- "cd /var/app/current && sudo -E -u webapp env PATH=$PATH #{command.join(' ')}"
277
- end
278
- out, err, status = runner.capture3 "eb", "ssh", env.environment_name, "-c", commandline
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
- runner.stdout.print out
281
- runner.stderr.print err
281
+ runner.stdout.print out
282
+ runner.stderr.print err
282
283
 
283
- raise status.to_s unless status.success?
284
+ raise status.to_s unless status.success?
285
+ end
284
286
  end
285
287
  ensure
286
288
  unless options[:keep]
@@ -1,3 +1,3 @@
1
1
  module JackAndTheElasticBeanstalk
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-25 00:00:00.000000000 Z
11
+ date: 2018-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler