jack-eb 0.0.4 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba4de20f714331851a67992e8cbb3ddc5e2cea89
4
- data.tar.gz: b545d2eaff2496ca3c506c8707ef4cd75e4ca143
3
+ metadata.gz: 1da14d2fe6722d015a028551e240b09a0514109a
4
+ data.tar.gz: 03f66d5e5b5ee620a817cb6354a3906ff324f801
5
5
  SHA512:
6
- metadata.gz: 2328f1cfefc1c29483d7ae00f46fc2d21bffb9406d5c5d64df76a6a1352669c6ed26859ffb762aa35b3bc146ea33385ea19093a733c723c120703566bcb03e2f
7
- data.tar.gz: 8289fb3aa1a99504edd6ac8e89032b73a2a8712c5b19e7e6419c6fb835bdce42fa2ae0ea9095ae32549901e24b1684c343440f63e18a1a66f4aa81fdefe186bb
6
+ metadata.gz: 5e3ba1939c2d8f61908b99c4b8966c465c687444693657180f978e973a5c06113f456a06d11e922d1c55e523f1410e5a107c3a710e811125382e4ab9abfe9795
7
+ data.tar.gz: 0f16ae1b3aa77b420427ffe60d2915c5b99772c66bc88800c4072046f9b0b6ff712ffebf37b43669c63de87bb246b604a2b15fc5a94c7e71056aefaf1639043c
data/.gitignore CHANGED
@@ -7,6 +7,7 @@ InstalledFiles
7
7
  _yardoc
8
8
  coverage
9
9
  doc/
10
+ Gemfile.lock
10
11
  lib/bundler/man
11
12
  pkg
12
13
  rdoc
@@ -12,10 +12,23 @@ module Jack
12
12
  end
13
13
 
14
14
  def run
15
+ create_app
15
16
  EbConfig::Create.new(@options).sync unless @options[:noop]
16
17
  create_env
17
18
  end
18
19
 
20
+ def create_app
21
+ eb.create_application(
22
+ application_name: @app_name
23
+ ) unless app_exist?
24
+ end
25
+
26
+ def app_exist?
27
+ return true if @options[:noop]
28
+ r = eb.describe_applications
29
+ r.applications.collect(&:application_name).include?(@app_name)
30
+ end
31
+
19
32
  def create_env
20
33
  command = build_command
21
34
  do_cmd(command, @options)
@@ -11,7 +11,7 @@ module Jack
11
11
  @root = options[:root] || '.'
12
12
  @env_name = options[:env_name]
13
13
  @eb_config_path = "#{@root}/.elasticbeanstalk/config.yml"
14
- ensure_folder_exist(@eb_config_path)
14
+ ensure_folder_exist(File.dirname(@eb_config_path))
15
15
  end
16
16
 
17
17
  def sync
@@ -1,3 +1,3 @@
1
1
  module Jack
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jack-eb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -134,7 +134,6 @@ files:
134
134
  - ".rspec"
135
135
  - ".travis.yml"
136
136
  - Gemfile
137
- - Gemfile.lock
138
137
  - Guardfile
139
138
  - LICENSE.txt
140
139
  - README.md
@@ -163,7 +162,6 @@ files:
163
162
  - lib/jack/util.rb
164
163
  - lib/jack/version.rb
165
164
  - lib/jack/version_checker.rb
166
- - spec/fixtures/project/.elasticbeanstalk/config.yml
167
165
  - spec/fixtures/project/jack/cfg/stag-rails-app.cfg.yml
168
166
  - spec/lib/cli_spec.rb
169
167
  - spec/lib/config/diff_spec.rb
@@ -204,7 +202,6 @@ signing_key:
204
202
  specification_version: 4
205
203
  summary: Wrapper tool to manage AWS Elastic Beanstalk environments
206
204
  test_files:
207
- - spec/fixtures/project/.elasticbeanstalk/config.yml
208
205
  - spec/fixtures/project/jack/cfg/stag-rails-app.cfg.yml
209
206
  - spec/lib/cli_spec.rb
210
207
  - spec/lib/config/diff_spec.rb
@@ -1,107 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- jack-eb (0.0.3)
5
- aws-sdk (~> 2)
6
- colorize
7
- thor
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- aws-sdk (2.0.28)
13
- aws-sdk-resources (= 2.0.28)
14
- aws-sdk-core (2.0.28)
15
- builder (~> 3.0)
16
- jmespath (~> 1.0)
17
- multi_json (~> 1.0)
18
- multi_xml (~> 0.5)
19
- aws-sdk-resources (2.0.28)
20
- aws-sdk-core (= 2.0.28)
21
- builder (3.2.2)
22
- celluloid (0.16.0)
23
- timers (~> 4.0.0)
24
- codeclimate-test-reporter (0.4.7)
25
- simplecov (>= 0.7.1, < 1.0.0)
26
- coderay (1.1.0)
27
- colorize (0.7.5)
28
- diff-lcs (1.2.5)
29
- docile (1.1.5)
30
- ffi (1.9.6)
31
- formatador (0.2.5)
32
- guard (2.12.4)
33
- formatador (>= 0.2.4)
34
- listen (~> 2.7)
35
- lumberjack (~> 1.0)
36
- nenv (~> 0.1)
37
- notiffany (~> 0.0)
38
- pry (>= 0.9.12)
39
- shellany (~> 0.0)
40
- thor (>= 0.18.1)
41
- guard-bundler (2.1.0)
42
- bundler (~> 1.0)
43
- guard (~> 2.2)
44
- guard-compat (~> 1.1)
45
- guard-compat (1.2.1)
46
- guard-rspec (4.5.0)
47
- guard (~> 2.1)
48
- guard-compat (~> 1.1)
49
- rspec (>= 2.99.0, < 4.0)
50
- hitimes (1.2.2)
51
- jmespath (1.0.2)
52
- multi_json (~> 1.0)
53
- listen (2.8.5)
54
- celluloid (>= 0.15.2)
55
- rb-fsevent (>= 0.9.3)
56
- rb-inotify (>= 0.9)
57
- lumberjack (1.0.9)
58
- method_source (0.8.2)
59
- multi_json (1.10.1)
60
- multi_xml (0.5.5)
61
- nenv (0.2.0)
62
- notiffany (0.0.6)
63
- nenv (~> 0.1)
64
- shellany (~> 0.0)
65
- pry (0.10.1)
66
- coderay (~> 1.1.0)
67
- method_source (~> 0.8.1)
68
- slop (~> 3.4)
69
- rake (10.4.2)
70
- rb-fsevent (0.9.4)
71
- rb-inotify (0.9.5)
72
- ffi (>= 0.5.0)
73
- rspec (3.2.0)
74
- rspec-core (~> 3.2.0)
75
- rspec-expectations (~> 3.2.0)
76
- rspec-mocks (~> 3.2.0)
77
- rspec-core (3.2.1)
78
- rspec-support (~> 3.2.0)
79
- rspec-expectations (3.2.0)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.2.0)
82
- rspec-mocks (3.2.1)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.2.0)
85
- rspec-support (3.2.2)
86
- shellany (0.0.1)
87
- simplecov (0.9.2)
88
- docile (~> 1.1.0)
89
- multi_json (~> 1.0)
90
- simplecov-html (~> 0.9.0)
91
- simplecov-html (0.9.0)
92
- slop (3.6.0)
93
- thor (0.19.1)
94
- timers (4.0.1)
95
- hitimes
96
-
97
- PLATFORMS
98
- ruby
99
-
100
- DEPENDENCIES
101
- bundler (~> 1.3)
102
- codeclimate-test-reporter
103
- guard
104
- guard-bundler
105
- guard-rspec
106
- jack-eb!
107
- rake