ecs_cmd 0.1.4 → 0.1.5

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: d71f58e4a9633203372ae063a6092f3e240706512e78194d3c826ee917061067
4
- data.tar.gz: 596040a7991d22b567f6949628bd8e6ff8196f6c43c6b3b12961a7c16e40f11d
3
+ metadata.gz: c08e97f4e8cd649b696318ea56c6f50457d61f8bacaa967a4bebb3f8349a0d9b
4
+ data.tar.gz: 9b5babb83bd7070b167e4a8740fdb608a50c6d338d911b83fccde8376e2b34af
5
5
  SHA512:
6
- metadata.gz: c15acb739bb663c7a6f42627dd6d8e47b440b7de2964d48ee6d919cfcc2f8517ba2e06647e195058992ce5b1092bc3b9dbcf11c57af1a87892fee683998580b5
7
- data.tar.gz: 3fd61f53280919e2c9cefc57a02167e7c3fd2c423b427f8be7d8bef0755bbd80f0fe111fe86653d113fcde5d9acc15c156724d881c1e0f63ae873708b85c86bb
6
+ metadata.gz: 6ded1958eeebb8872df2dc375adb3140aa0204496447f50018259d388bcea8941abab4ba01c1b4efe4395865610c3b8e5d2b052b6ffe3fda7d6acc9508f34d53
7
+ data.tar.gz: a9484795dfa87ac144aa4d0fbf036cbcadacd6207d9904f98acd7252bb0a1ec3a5845ae55f7b19490996e173128f308eb86d631c1651f9482dbd43ab0ba8afff
data/Gemfile.lock CHANGED
@@ -1,32 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecs_cmd (0.1.4)
4
+ ecs_cmd (0.1.5)
5
5
  aws-sdk-ec2
6
6
  aws-sdk-ecs
7
- gli (= 2.17.1)
7
+ gli (= 2.18.0)
8
8
  terminal-table
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  aws-eventstream (1.0.1)
14
- aws-partitions (1.103.0)
15
- aws-sdk-core (3.27.0)
14
+ aws-partitions (1.133.0)
15
+ aws-sdk-core (3.46.0)
16
16
  aws-eventstream (~> 1.0)
17
17
  aws-partitions (~> 1.0)
18
18
  aws-sigv4 (~> 1.0)
19
19
  jmespath (~> 1.0)
20
- aws-sdk-ec2 (1.45.0)
21
- aws-sdk-core (~> 3, >= 3.26.0)
20
+ aws-sdk-ec2 (1.67.0)
21
+ aws-sdk-core (~> 3, >= 3.39.0)
22
22
  aws-sigv4 (~> 1.0)
23
- aws-sdk-ecs (1.19.0)
24
- aws-sdk-core (~> 3, >= 3.26.0)
23
+ aws-sdk-ecs (1.28.0)
24
+ aws-sdk-core (~> 3, >= 3.39.0)
25
25
  aws-sigv4 (~> 1.0)
26
26
  aws-sigv4 (1.0.3)
27
27
  coderay (1.1.2)
28
28
  diff-lcs (1.3)
29
- gli (2.17.1)
29
+ gli (2.18.0)
30
30
  jmespath (1.4.0)
31
31
  method_source (0.9.0)
32
32
  pry (0.11.3)
@@ -48,7 +48,7 @@ GEM
48
48
  rspec-support (3.7.1)
49
49
  terminal-table (1.8.0)
50
50
  unicode-display_width (~> 1.1, >= 1.1.1)
51
- unicode-display_width (1.4.0)
51
+ unicode-display_width (1.4.1)
52
52
 
53
53
  PLATFORMS
54
54
  ruby
data/README.md CHANGED
@@ -137,7 +137,9 @@ ecs-cmd get service -c production -s foo
137
137
 
138
138
  ### Logs
139
139
 
140
- *requires ssh access to instance*
140
+ **_works for ec2 type services only_**
141
+
142
+ **_requires ssh access to instance_**
141
143
 
142
144
  Streams logs from 1 of a services running tasks using the docker logs command
143
145
 
@@ -158,7 +160,7 @@ COMMAND OPTIONS
158
160
  ### Run Task
159
161
 
160
162
  Run a one off task in ECS. This will poll for the task to exit and report its exit code. This is
161
- handy for tasks like rails migrations. If a docker image is passed it will create a new revision of
163
+ handy for tasks like rails migrations in ci/cd pipelines. If a docker image is passed it will create a new revision of
162
164
  the task definition prior to running the task.
163
165
 
164
166
  ```shell
@@ -179,7 +181,9 @@ COMMAND OPTIONS
179
181
 
180
182
  ### Shell
181
183
 
182
- *requires ssh access to instance*
184
+ **_works for ec2 type services only_**
185
+
186
+ **_requires ssh access to instance_**
183
187
 
184
188
  Open a shell inside of a container for a given service.
185
189
 
@@ -200,7 +204,9 @@ COMMAND OPTIONS
200
204
 
201
205
  ### SSH
202
206
 
203
- *requires ssh access to instance*
207
+ **_works for ec2 type services only_**
208
+
209
+ **_requires ssh access to instance_**
204
210
 
205
211
  SSH onto a host where a container for a given service is running.
206
212
 
data/ecs_cmd.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ['lib']
34
34
  spec.add_runtime_dependency 'aws-sdk-ec2'
35
35
  spec.add_runtime_dependency 'aws-sdk-ecs'
36
- spec.add_runtime_dependency 'gli', '2.17.1'
36
+ spec.add_runtime_dependency 'gli', '2.18.0'
37
37
  spec.add_runtime_dependency 'terminal-table'
38
38
 
39
39
  spec.add_development_dependency 'bundler', '~> 1.16'
@@ -1,5 +1,6 @@
1
1
  require 'aws-sdk-ecs'
2
2
  require 'terminal-table'
3
+ require 'pry'
3
4
 
4
5
  module EcsCmd
5
6
  class Services
@@ -21,7 +22,7 @@ module EcsCmd
21
22
  @service_list = get_services(cluster)
22
23
  rows = []
23
24
  @service_list.map do |service|
24
- service_name = service.split('/')[1]
25
+ service_name = service.split(%r{/}).last
25
26
  serv = EcsCmd::Service.new(cluster, service_name, reg)
26
27
  rows << [service_name, serv.desired_count, serv.running_count, serv.pending_count]
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module EcsCmd
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schaaff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-07 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ec2
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.17.1
47
+ version: 2.18.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.17.1
54
+ version: 2.18.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: terminal-table
57
57
  requirement: !ruby/object:Gem::Requirement