ecs_deployer 0.1.9 → 0.1.10
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 +4 -4
- data/example/sample.rb +1 -2
- data/lib/ecs_deployer/client.rb +3 -3
- data/lib/ecs_deployer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7389166ccf5aedfa60a4274b67ecc8e2a0e3faa7
|
4
|
+
data.tar.gz: 9c226a64f7c98e0cdba90a18e5256f948a7c69a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a8af3bf684b549e10b389c413e6d6eb3b2c54f6747420f6604791b4a1a162601067efca5f2c4ea41f0c78bcec5c07674187eec1b215a8377a9276a3b42bd798
|
7
|
+
data.tar.gz: 93d9eb11c24d830b3cb7949e334f66f4b0f728afe152c9e5fb7861a9790f8b8428e76b2e66b97603984c44b612894d5ac23308361dd14227db5a2322aefba55a
|
data/example/sample.rb
CHANGED
@@ -2,8 +2,7 @@ require 'bundler/setup'
|
|
2
2
|
require 'ecs_deployer'
|
3
3
|
|
4
4
|
task_path = File.expand_path('./fixtures/task.yml', File.dirname(File.realpath(__FILE__)))
|
5
|
-
task_path = '/Users/naomichi_yamakita_pn082/Projects/sandbox-ecs/config/deploy/production.yml'
|
6
5
|
|
7
6
|
deployer = EcsDeployer::Client.new
|
8
7
|
deployer.register_task(task_path)
|
9
|
-
#
|
8
|
+
#deployer.update_service('sandbox', 'production')
|
data/lib/ecs_deployer/client.rb
CHANGED
@@ -62,7 +62,7 @@ module EcsDeployer
|
|
62
62
|
result = @cli.describe_task_definition({
|
63
63
|
task_definition: svc[:task_definition]
|
64
64
|
})
|
65
|
-
@new_task_definition_arn = register_task_hash(result[:task_definition])
|
65
|
+
@new_task_definition_arn = register_task_hash(result[:task_definition].to_hash)
|
66
66
|
detected_service = true
|
67
67
|
break
|
68
68
|
end
|
@@ -77,7 +77,7 @@ module EcsDeployer
|
|
77
77
|
# @param [String] service
|
78
78
|
# @param [Fixnum] timeout
|
79
79
|
def update_service(cluster, service, wait = true, timeout = 600)
|
80
|
-
register_clone_task(service) if @new_task_definition_arn.empty?
|
80
|
+
register_clone_task(cluster, service) if @new_task_definition_arn.empty?
|
81
81
|
|
82
82
|
@cli.update_service({
|
83
83
|
cluster: cluster,
|
@@ -99,7 +99,7 @@ module EcsDeployer
|
|
99
99
|
begin
|
100
100
|
environment[:value] = @kms.decrypt(ciphertext_blob: Base64.strict_decode64(match[1])).plaintext
|
101
101
|
rescue => e
|
102
|
-
raise
|
102
|
+
raise KmsDecryptError.new(e.to_s)
|
103
103
|
end
|
104
104
|
end
|
105
105
|
end
|
data/lib/ecs_deployer/version.rb
CHANGED