ecs_cmd 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/ecs_cmd/task_definition.rb +5 -1
- data/lib/ecs_cmd/utils.rb +4 -2
- data/lib/ecs_cmd/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0da13ec777258351bd19f2fd99c529ce5a65097e83206877cb908d7c863726a8
|
4
|
+
data.tar.gz: 91472ab09eaba8f9d5aa434ab682ffb4dc12e4e8f06cbf420b40007fafd06ad3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d33f77b41c7a40e01246312b4e4fc20477585bd0defe59f2f41305ef06d62a4e8c7ce25cb7a3f00e8ab0a2686eeceaf046ac5eb9051e2e38b4d6dcd7ed2d162
|
7
|
+
data.tar.gz: 91233d643d6cdbe4455a9b77d3defc4c35d7ef9e97d278c8cb70fcb7e41b200b018948c401285b92103b811d96119261fbe5653941c0b34acda3993161a50240
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -43,6 +43,10 @@ module EcsCmd
|
|
43
43
|
def task_role_arn
|
44
44
|
@task_def['task_role_arn']
|
45
45
|
end
|
46
|
+
|
47
|
+
def execution_role_arn
|
48
|
+
@task_def['execution_role_arn']
|
49
|
+
end
|
46
50
|
|
47
51
|
def update_image(image)
|
48
52
|
@new_task_def = @task_def.to_hash
|
@@ -57,7 +61,7 @@ module EcsCmd
|
|
57
61
|
end
|
58
62
|
|
59
63
|
def register_task_definition(family, container_definitions, volumes, task_role_arn)
|
60
|
-
@client.register_task_definition(family: family, container_definitions: container_definitions, volumes: volumes, task_role_arn: task_role_arn)
|
64
|
+
@client.register_task_definition(family: family, container_definitions: container_definitions, volumes: volumes, task_role_arn: task_role_arn, execution_role_arn: execution_role_arn)
|
61
65
|
end
|
62
66
|
|
63
67
|
def print_json
|
data/lib/ecs_cmd/utils.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
module EcsCmd
|
2
2
|
module Utils
|
3
3
|
def self.parse_image_name(image)
|
4
|
-
regex = /^([a-zA-Z0-9\.\-]+):?([0-9]+)
|
4
|
+
regex = /^([a-zA-Z0-9\.\-]+):?([0-9]+)?\/?([a-zA-Z0-9\._\-]+)(\/[\/a-zA-Z0-9\._\-]+)?:?([a-zA-Z0-9\._\-]+)?$/
|
5
5
|
raise 'invalid image supplied, please verify correct image format' unless regex.match(image)
|
6
|
-
if regex.match(image)[
|
6
|
+
if regex.match(image)[5].nil? || regex.match(image)[5] == false
|
7
|
+
regex.match(image)[1]
|
8
|
+
elsif regex.match(image)[4].nil? || regex.match(image)[4] == false
|
7
9
|
regex.match(image)[3]
|
8
10
|
else
|
9
11
|
regex.match(image)[4].gsub(/\//, '')
|
data/lib/ecs_cmd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecs_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schaaff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ec2
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
requirements: []
|
190
190
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.7.6
|
191
|
+
rubygems_version: 2.7.6.2
|
192
192
|
signing_key:
|
193
193
|
specification_version: 4
|
194
194
|
summary: AWS ECS CLI Utility
|