ciinabox-ecs 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +10 -10
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2cf364eee290309c77b8765ca294c3ce59c2a16c981ea1d8fb5fa507ebcf89b6
|
4
|
+
data.tar.gz: 4fde8e7c54fa95d25c77a158be5fc0ff39605816cbd421864934a26bcde471c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2304c47890683ba9f0e52951d14518e27993fa29e6f9e33247733de9f7aeac35b86498e88ba59c8d7492e05c03bee1b3abe34ee5c1af4d5d9e5f385faf5f9e
|
7
|
+
data.tar.gz: 375a9912848bf3268d2916969ae6a70d3aa3f7b8c3c4b148196fa0346cb6efeb8ddf5f61e45efd51eddaca6770c563b5faf6109ba95f1270cb2b97d2667158b7
|
data/Rakefile
CHANGED
@@ -198,7 +198,7 @@ namespace :ciinabox do
|
|
198
198
|
task :status do
|
199
199
|
check_active_ciinabox(config)
|
200
200
|
status, result = aws_execute(config, ['cloudformation', 'describe-stacks', "--stack-name #{stack_name}", '--query "Stacks[0].StackStatus"', '--out text'])
|
201
|
-
if status
|
201
|
+
if status != 0
|
202
202
|
puts "fail to get status for #{config['ciinabox_name']}...has it been created?"
|
203
203
|
exit 1
|
204
204
|
end
|
@@ -215,10 +215,10 @@ namespace :ciinabox do
|
|
215
215
|
task :create_source_bucket do
|
216
216
|
check_active_ciinabox(config)
|
217
217
|
status, result = aws_execute(config, ['s3', 'ls', "s3://#{config['source_bucket']}/ciinabox/#{config['ciinabox_version']}/"])
|
218
|
-
if status
|
218
|
+
if status != 0
|
219
219
|
status, result = aws_execute(config, ['s3', 'mb', "s3://#{config['source_bucket']}"])
|
220
220
|
puts result
|
221
|
-
if status
|
221
|
+
if status != 0
|
222
222
|
puts "fail to create source bucket see error logs for details"
|
223
223
|
exit status
|
224
224
|
else
|
@@ -258,7 +258,7 @@ namespace :ciinabox do
|
|
258
258
|
"--private-key file://#{cert_dir}/ssl/ciinabox.key",
|
259
259
|
"--certificate-chain file://#{cert_dir}/ssl/ciinabox.crt"
|
260
260
|
])
|
261
|
-
if status
|
261
|
+
if status != 0
|
262
262
|
puts "fail to create or update IAM server-certificates. See error logs for details"
|
263
263
|
puts result
|
264
264
|
exit status
|
@@ -285,7 +285,7 @@ namespace :ciinabox do
|
|
285
285
|
"--out text"
|
286
286
|
], "#{keypair_dir}/ciinabox.pem")
|
287
287
|
puts result
|
288
|
-
if status
|
288
|
+
if status != 0
|
289
289
|
puts "fail to create keypair see error logs for details"
|
290
290
|
exit status
|
291
291
|
else
|
@@ -299,7 +299,7 @@ namespace :ciinabox do
|
|
299
299
|
check_active_ciinabox(config)
|
300
300
|
status, result = aws_execute(config, ['s3', 'sync', 'output/', "s3://#{config['source_bucket']}/ciinabox/#{config['ciinabox_version']}/"])
|
301
301
|
puts result
|
302
|
-
if status
|
302
|
+
if status != 0
|
303
303
|
puts "fail to upload rendered templates to S3 bucket #{config['source_bucket']}"
|
304
304
|
exit status
|
305
305
|
else
|
@@ -316,7 +316,7 @@ namespace :ciinabox do
|
|
316
316
|
'--capabilities CAPABILITY_IAM'
|
317
317
|
])
|
318
318
|
puts result
|
319
|
-
if status
|
319
|
+
if status != 0
|
320
320
|
puts "Failed to create ciinabox environment"
|
321
321
|
exit status
|
322
322
|
else
|
@@ -333,7 +333,7 @@ namespace :ciinabox do
|
|
333
333
|
'--capabilities CAPABILITY_IAM'
|
334
334
|
])
|
335
335
|
puts result
|
336
|
-
if status
|
336
|
+
if status != 0
|
337
337
|
puts "Failed to update ciinabox environment"
|
338
338
|
exit status
|
339
339
|
else
|
@@ -363,7 +363,7 @@ namespace :ciinabox do
|
|
363
363
|
if input == 'y'
|
364
364
|
status, result = aws_execute(config, ['cloudformation', 'delete-stack', "--stack-name #{stack_name}"])
|
365
365
|
puts result
|
366
|
-
if status
|
366
|
+
if status != 0
|
367
367
|
puts "fail to tear down ciinabox environment"
|
368
368
|
exit status
|
369
369
|
else
|
@@ -597,7 +597,7 @@ namespace :ciinabox do
|
|
597
597
|
'--query Reservations[*].Instances[?Tags[?Value==\`ciinabox-ecs\`]].PrivateIpAddress',
|
598
598
|
'--out text'
|
599
599
|
])
|
600
|
-
if status
|
600
|
+
if status != 0
|
601
601
|
return nil
|
602
602
|
else
|
603
603
|
return result
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ciinabox-ecs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Base2Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.6
|
143
|
+
rubygems_version: 2.7.6
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Manage ciinabox on Aws Ecs
|