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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a9b6fdfd1072695714769ae81f8c4b4f766cc7c
4
- data.tar.gz: 6e708c0e1d0a1e6fa9b152397331fac469f1f6d4
3
+ metadata.gz: 3cee55a57435fd7b4f30e21106eb18b460d9da7d
4
+ data.tar.gz: aa3e353b4617d1566afa2935716d8a13c1ab4be3
5
5
  SHA512:
6
- metadata.gz: 332939a0c51ac97770674c689c73bbfd5df7cce4d7551017e64c7e4fd85432aefd70ccf118afffe93b649d70ea7c2f94bbee52a3e42bfd27ccc1994524d58804
7
- data.tar.gz: 2acd0fba8246f497d5ea7ee796c4f05d1397320ebcef76b940df6f18adee7d2554d70497aa62d6a69af196ee4ad64bb038dee2bb83f0f27d5399706c16b6eb28
6
+ metadata.gz: cbdfe7b6367ad22caed35994f13e4ae1f88c881feee23a848601967fa1209bd1a57585c3e2a919ace52abd12174504ae8d385aa8f9339617211fb260f4fa4ac3
7
+ data.tar.gz: dcd7d6fc83fef3894cc0a2b125d5bd1c746432ec82ac37f9b85172cd1a098021394bcd3a59bf96f77f6ba2148a2ba0d436dd938648708a31a764f5123ad0f4d9
data/exe/jeb CHANGED
@@ -3,5 +3,5 @@
3
3
  $LOAD_PATH << File.join(__dir__, "../lib")
4
4
  require "jack_and_the_elastic_beanstalk"
5
5
 
6
- Dotenv.load
6
+ Dotenv.load(".env.local", ".env")
7
7
  JackAndTheElasticBeanstalk::CLI.start(ARGV)
@@ -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 {|env| env.environment_name == env_name(group: group, process: process) }
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 {|env| env.environment_name == env_name(group: group, process: process) }
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
@@ -1,3 +1,3 @@
1
1
  module JackAndTheElasticBeanstalk
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
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.1.1
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: 2017-03-31 00:00:00.000000000 Z
11
+ date: 2018-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler