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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76ede8bd9e4c5ae6fc5aa0bc4aa44177e420515140717a8969e16aa25d8a23af
4
- data.tar.gz: 61216713159ce16f3330e0f29666c7e30146fbcf5b20c8ca500b3634a4821d92
3
+ metadata.gz: 0da13ec777258351bd19f2fd99c529ce5a65097e83206877cb908d7c863726a8
4
+ data.tar.gz: 91472ab09eaba8f9d5aa434ab682ffb4dc12e4e8f06cbf420b40007fafd06ad3
5
5
  SHA512:
6
- metadata.gz: 493d391d282de54c6cd4824f1fc425090ffb9c314aa5204a2f8491c8aead4c6900824fa5a3376010faf85de394bd814d2c34e584cd34a495e5771357550aa199
7
- data.tar.gz: 731efe713d5e46ecac433d32b6324874a86dce29cf8516bb84ba892753eee455731b239b08c815da5cc02ed7ec234934d65d76b7b4303dd5b307987e49744116
6
+ metadata.gz: 9d33f77b41c7a40e01246312b4e4fc20477585bd0defe59f2f41305ef06d62a4e8c7ce25cb7a3f00e8ab0a2686eeceaf046ac5eb9051e2e38b4d6dcd7ed2d162
7
+ data.tar.gz: 91233d643d6cdbe4455a9b77d3defc4c35d7ef9e97d278c8cb70fcb7e41b200b018948c401285b92103b811d96119261fbe5653941c0b34acda3993161a50240
@@ -1,3 +1,8 @@
1
+ # 0.1.7
2
+
3
+ - bugfix: Run task did not work when task definition contained secrets.
4
+ - bugfix: Failed to parse image name for images from docker hub (e.g. redis:alpine)
5
+
1
6
  # 0.1.6
2
7
 
3
8
  - bugfix: remove pry require
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecs_cmd (0.1.6)
4
+ ecs_cmd (0.1.7)
5
5
  aws-sdk-ec2
6
6
  aws-sdk-ecs
7
7
  gli (= 2.18.0)
@@ -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
@@ -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]+)?\/([a-zA-Z0-9\._\-]+)(\/[\/a-zA-Z0-9\._\-]+)?:?([a-zA-Z0-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)[4].nil? || regex.match(image)[4] == false
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(/\//, '')
@@ -1,3 +1,3 @@
1
1
  module EcsCmd
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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-01-21 00:00:00.000000000 Z
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