jack_and_the_elastic_beanstalk 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/jeb +1 -1
- data/lib/jack_and_the_elastic_beanstalk/service.rb +5 -5
- data/lib/jack_and_the_elastic_beanstalk/version.rb +1 -1
- 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: 3cee55a57435fd7b4f30e21106eb18b460d9da7d
|
4
|
+
data.tar.gz: aa3e353b4617d1566afa2935716d8a13c1ab4be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbdfe7b6367ad22caed35994f13e4ae1f88c881feee23a848601967fa1209bd1a57585c3e2a919ace52abd12174504ae8d385aa8f9339617211fb260f4fa4ac3
|
7
|
+
data.tar.gz: dcd7d6fc83fef3894cc0a2b125d5bd1c746432ec82ac37f9b85172cd1a098021394bcd3a59bf96f77f6ba2148a2ba0d436dd938648708a31a764f5123ad0f4d9
|
data/exe/jeb
CHANGED
@@ -25,7 +25,7 @@ module JackAndTheElasticBeanstalk
|
|
25
25
|
runner.capture3!("eb", "deploy", env_name(group: group, process: process), "--nohang")
|
26
26
|
end
|
27
27
|
|
28
|
-
env = eb.environments.find {|
|
28
|
+
env = eb.environments.find {|e| e.environment_name == env_name(group: group, process: process) }
|
29
29
|
env.synchronize_update
|
30
30
|
end
|
31
31
|
|
@@ -72,7 +72,7 @@ module JackAndTheElasticBeanstalk
|
|
72
72
|
end
|
73
73
|
|
74
74
|
eb.refresh
|
75
|
-
env = eb.environments.find {|
|
75
|
+
env = eb.environments.find {|e| e.environment_name == env_name(group: group, process: process) }
|
76
76
|
env.synchronize_update
|
77
77
|
else
|
78
78
|
logger.info("jeb::service") { "Environment #{env_name(group:group, process: process)} already exists..." }
|
@@ -80,7 +80,7 @@ module JackAndTheElasticBeanstalk
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def env_name(group:, process:)
|
83
|
-
"jeb-#{group}-#{process}"
|
83
|
+
"jeb-#{config.app_name}-#{group}-#{process}"
|
84
84
|
end
|
85
85
|
|
86
86
|
def stage(target_dir:, process:)
|
@@ -162,7 +162,7 @@ module JackAndTheElasticBeanstalk
|
|
162
162
|
|
163
163
|
def each_environment(group:)
|
164
164
|
if block_given?
|
165
|
-
regexp = /\Ajeb-#{group}-([^\-]+)\Z/
|
165
|
+
regexp = /\Ajeb-#{config.app_name}-#{group}-([^\-]+)\Z/
|
166
166
|
|
167
167
|
eb.environments.each do |env|
|
168
168
|
if env.environment_name =~ regexp
|
@@ -176,7 +176,7 @@ module JackAndTheElasticBeanstalk
|
|
176
176
|
|
177
177
|
def each_group
|
178
178
|
if block_given?
|
179
|
-
regexp = /\Ajeb-(.+)-([^\-]+)\Z/
|
179
|
+
regexp = /\Ajeb-#{config.app_name}-(.+)-([^\-]+)\Z/
|
180
180
|
|
181
181
|
eb.environments.group_by {|env|
|
182
182
|
if env.environment_name =~ regexp
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|