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 +4 -4
- data/Gemfile.lock +10 -10
- data/README.md +10 -4
- data/ecs_cmd.gemspec +1 -1
- data/lib/ecs_cmd/services.rb +2 -1
- data/lib/ecs_cmd/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c08e97f4e8cd649b696318ea56c6f50457d61f8bacaa967a4bebb3f8349a0d9b
|
4
|
+
data.tar.gz: 9b5babb83bd7070b167e4a8740fdb608a50c6d338d911b83fccde8376e2b34af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
ecs_cmd (0.1.5)
|
5
5
|
aws-sdk-ec2
|
6
6
|
aws-sdk-ecs
|
7
|
-
gli (= 2.
|
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.
|
15
|
-
aws-sdk-core (3.
|
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.
|
21
|
-
aws-sdk-core (~> 3, >= 3.
|
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.
|
24
|
-
aws-sdk-core (~> 3, >= 3.
|
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.
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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.
|
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'
|
data/lib/ecs_cmd/services.rb
CHANGED
@@ -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(
|
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
|
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.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:
|
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.
|
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.
|
54
|
+
version: 2.18.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: terminal-table
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|