container_ship 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: eb9afef88f95f3bb1a71a3280da4dcc0001d6998d9c10c2f18c5e79c5ef64594
4
- data.tar.gz: a5b9a286b28d7011632ddadc95634eb34bdef30d2822dcddb08e09594390a9d3
3
+ metadata.gz: 81784b5cc4c7f154050767adc86bfa44c61da90de8c3acfe7675317e3c05e8af
4
+ data.tar.gz: 568d9db35b31697a1892b9f2aaefd26f5c673a872ffda6541dd5ff64ae817a80
5
5
  SHA512:
6
- metadata.gz: d572df8d02e95d6dc8dcf0129a98deb68314481fcce12738db6c11463d12a6aa18fd1f970a20beaf3c152c30e22dd0488655369569afbe32f29ca84ff3843666
7
- data.tar.gz: 39b233d530327120d4426b317fb8760e911350ce85f9972d4d85ca1e34ca38a0610a9b4f3ffd3ca5531ab6b5404bad76573537a3ff5328d4f63fbfd782bbcec8
6
+ metadata.gz: 437ddc8b6e673f3a8a76ab4c16e371539cf99a6bfcab0a25257a2a8c1a644d723f7fdb18797612af2061f598910abc3da9cbcecac2b17777127dfa48ba79d0f1
7
+ data.tar.gz: 8c4d1bd691fc124e83e4335b93e3dd16f70bf97886d46c687167c81b0ebf5c22314faae41a07bbe1f948757452f459bbcaa004c0c82c6403bf9fe18293c5a256
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- container_ship (0.1.3)
4
+ container_ship (0.1.4)
5
5
  aws-sdk-cloudwatchlogs
6
6
  aws-sdk-ecs
7
7
  thor
@@ -19,35 +19,37 @@ GEM
19
19
  public_suffix (>= 2.0.2, < 5.0)
20
20
  ast (2.4.2)
21
21
  aws-eventstream (1.2.0)
22
- aws-partitions (1.503.0)
23
- aws-sdk-cloudwatchlogs (1.45.0)
24
- aws-sdk-core (~> 3, >= 3.120.0)
22
+ aws-partitions (1.560.0)
23
+ aws-sdk-cloudwatchlogs (1.52.0)
24
+ aws-sdk-core (~> 3, >= 3.127.0)
25
25
  aws-sigv4 (~> 1.1)
26
- aws-sdk-core (3.121.0)
26
+ aws-sdk-core (3.127.0)
27
27
  aws-eventstream (~> 1, >= 1.0.2)
28
- aws-partitions (~> 1, >= 1.239.0)
28
+ aws-partitions (~> 1, >= 1.525.0)
29
29
  aws-sigv4 (~> 1.1)
30
30
  jmespath (~> 1.0)
31
- aws-sdk-ecs (1.85.0)
32
- aws-sdk-core (~> 3, >= 3.120.0)
31
+ aws-sdk-ecs (1.96.0)
32
+ aws-sdk-core (~> 3, >= 3.127.0)
33
33
  aws-sigv4 (~> 1.1)
34
34
  aws-sigv4 (1.4.0)
35
35
  aws-eventstream (~> 1, >= 1.0.2)
36
- codecov (0.5.2)
36
+ codecov (0.6.0)
37
37
  simplecov (>= 0.15, < 0.22)
38
38
  coderay (1.1.3)
39
39
  concurrent-ruby (1.1.9)
40
- diff-lcs (1.4.4)
40
+ diff-lcs (1.5.0)
41
41
  docile (1.3.5)
42
- faraday (1.5.1)
42
+ faraday (1.10.0)
43
43
  faraday-em_http (~> 1.0)
44
44
  faraday-em_synchrony (~> 1.0)
45
45
  faraday-excon (~> 1.1)
46
- faraday-httpclient (~> 1.0.1)
46
+ faraday-httpclient (~> 1.0)
47
+ faraday-multipart (~> 1.0)
47
48
  faraday-net_http (~> 1.0)
48
- faraday-net_http_persistent (~> 1.1)
49
+ faraday-net_http_persistent (~> 1.0)
49
50
  faraday-patron (~> 1.0)
50
- multipart-post (>= 1.2, < 3)
51
+ faraday-rack (~> 1.0)
52
+ faraday-retry (~> 1.0)
51
53
  ruby2_keywords (>= 0.0.4)
52
54
  faraday-em_http (1.0.0)
53
55
  faraday-em_synchrony (1.0.0)
@@ -55,11 +57,15 @@ GEM
55
57
  faraday-http-cache (2.2.0)
56
58
  faraday (>= 0.8)
57
59
  faraday-httpclient (1.0.1)
60
+ faraday-multipart (1.0.3)
61
+ multipart-post (>= 1.2, < 3)
58
62
  faraday-net_http (1.0.1)
59
63
  faraday-net_http_persistent (1.2.0)
60
64
  faraday-patron (1.0.0)
61
- ffi (1.15.3)
62
- formatador (0.3.0)
65
+ faraday-rack (1.0.0)
66
+ faraday-retry (1.0.3)
67
+ ffi (1.15.5)
68
+ formatador (1.1.0)
63
69
  github_changelog_generator (1.15.2)
64
70
  activesupport
65
71
  faraday-http-cache
@@ -85,52 +91,52 @@ GEM
85
91
  guard-rubocop (1.4.0)
86
92
  guard (~> 2.0)
87
93
  rubocop (< 2.0)
88
- i18n (1.8.10)
94
+ i18n (1.10.0)
89
95
  concurrent-ruby (~> 1.0)
90
- jmespath (1.4.0)
91
- listen (3.6.0)
96
+ jmespath (1.6.0)
97
+ listen (3.7.1)
92
98
  rb-fsevent (~> 0.10, >= 0.10.3)
93
99
  rb-inotify (~> 0.9, >= 0.9.10)
94
100
  lumberjack (1.2.8)
95
101
  method_source (1.0.0)
96
- minitest (5.14.4)
102
+ minitest (5.15.0)
97
103
  multi_json (1.15.0)
98
104
  multipart-post (2.1.1)
99
105
  nenv (0.3.0)
100
106
  notiffany (0.1.3)
101
107
  nenv (~> 0.1)
102
108
  shellany (~> 0.0)
103
- octokit (4.21.0)
109
+ octokit (4.22.0)
104
110
  faraday (>= 0.9)
105
111
  sawyer (~> 0.8.0, >= 0.5.3)
106
112
  parallel (1.20.1)
107
- parser (3.0.2.0)
113
+ parser (3.1.1.0)
108
114
  ast (~> 2.4.1)
109
115
  pry (0.14.1)
110
116
  coderay (~> 1.1)
111
117
  method_source (~> 1.0)
112
118
  public_suffix (4.0.6)
113
- rainbow (3.0.0)
119
+ rainbow (3.1.1)
114
120
  rake (13.0.6)
115
- rb-fsevent (0.11.0)
121
+ rb-fsevent (0.11.1)
116
122
  rb-inotify (0.10.1)
117
123
  ffi (~> 1.0)
118
- regexp_parser (2.1.1)
124
+ regexp_parser (2.2.1)
119
125
  retriable (3.1.2)
120
126
  rexml (3.2.5)
121
- rspec (3.10.0)
122
- rspec-core (~> 3.10.0)
123
- rspec-expectations (~> 3.10.0)
124
- rspec-mocks (~> 3.10.0)
125
- rspec-core (3.10.1)
126
- rspec-support (~> 3.10.0)
127
- rspec-expectations (3.10.1)
127
+ rspec (3.11.0)
128
+ rspec-core (~> 3.11.0)
129
+ rspec-expectations (~> 3.11.0)
130
+ rspec-mocks (~> 3.11.0)
131
+ rspec-core (3.11.0)
132
+ rspec-support (~> 3.11.0)
133
+ rspec-expectations (3.11.0)
128
134
  diff-lcs (>= 1.2.0, < 2.0)
129
- rspec-support (~> 3.10.0)
130
- rspec-mocks (3.10.2)
135
+ rspec-support (~> 3.11.0)
136
+ rspec-mocks (3.11.0)
131
137
  diff-lcs (>= 1.2.0, < 2.0)
132
- rspec-support (~> 3.10.0)
133
- rspec-support (3.10.2)
138
+ rspec-support (~> 3.11.0)
139
+ rspec-support (3.11.0)
134
140
  rubocop (1.12.1)
135
141
  parallel (~> 1.10)
136
142
  parser (>= 3.0.0.0)
@@ -153,12 +159,12 @@ GEM
153
159
  simplecov-html (~> 0.11)
154
160
  simplecov_json_formatter (~> 0.1)
155
161
  simplecov-html (0.12.3)
156
- simplecov_json_formatter (0.1.3)
157
- thor (1.1.0)
162
+ simplecov_json_formatter (0.1.4)
163
+ thor (1.2.1)
158
164
  thread_safe (0.3.6)
159
165
  tzinfo (1.2.9)
160
166
  thread_safe (~> 0.1)
161
- unicode-display_width (2.0.0)
167
+ unicode-display_width (2.1.0)
162
168
  zeitwerk (2.4.2)
163
169
 
164
170
  PLATFORMS
@@ -23,7 +23,8 @@ module ContainerShip
23
23
  aws_ecs_client
24
24
  .run_task(
25
25
  cluster: task_definition.full_cluster_name,
26
- task_definition: "#{task_definition.full_name}:#{revision}"
26
+ task_definition: "#{task_definition.full_name}:#{revision}",
27
+ **task_definition.run_task_options
27
28
  )
28
29
  .tasks
29
30
  .first
@@ -49,6 +49,14 @@ module ContainerShip
49
49
  "#{prefix}/#{full_name}/#{task_arn.split('/').last}"
50
50
  end
51
51
 
52
+ def run_task_options
53
+ @run_task_options ||= if File.exist?(run_task_options_path)
54
+ JSON.parse(File.read(run_task_options_path), symbolize_names: true)
55
+ else
56
+ {}
57
+ end
58
+ end
59
+
52
60
  private
53
61
 
54
62
  def task_definition_hash
@@ -62,5 +70,9 @@ module ContainerShip
62
70
  def main_container_definition
63
71
  task_definition_hash[:container_definitions].find { |definition| definition[:essential] }
64
72
  end
73
+
74
+ def run_task_options_path
75
+ File.join('.container_ship', @cluster_name, @type, @name, @environment, 'run_task_options.json')
76
+ end
65
77
  end
66
78
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContainerShip
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: container_ship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-22 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudwatchlogs
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.0.3
251
+ rubygems_version: 3.1.2
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: Yet another ECS deployment tool