awful 0.0.159 → 0.0.160
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/awful/ecs.rb +10 -1
- data/lib/awful/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 976c227fd5ff38b9c243fcfbe722ec57a36b84c6
|
4
|
+
data.tar.gz: 7e7b4e7eb9a2cd6dd7d02e2223ff3840427b1765
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45f8096b48a63ae34a4d3197e1f0aad8af7ebeb4700887e8dd9620603a807b654cf97f7c6f836a1c44c13994615c212a3f3902bcd2ce0e6d983a98962ff74d69
|
7
|
+
data.tar.gz: 11b18f323231122a01687bee01d38efe5a001a5944fc6c087e2eecd74d34bfdbe38b8c11f280bb90a8f78daeb7c3cab58a65cad0ebcc830648a6e9eb016132d8
|
data/lib/awful/ecs.rb
CHANGED
@@ -60,6 +60,15 @@ module Awful
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
desc 'delete NAME', 'delete a cluster'
|
64
|
+
def delete(name)
|
65
|
+
if yes?("Really delete stack #{name}?", :yellow)
|
66
|
+
ecs.delete_cluster(cluster: name).cluster.output do |cluster|
|
67
|
+
puts YAML.dump(stringify_keys(cluster.to_h))
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
63
72
|
desc 'instances CLUSTER', 'list instances for CLUSTER'
|
64
73
|
method_option :long, aliases: '-l', type: :boolean, default: false, desc: 'Long listing'
|
65
74
|
def instances(cluster)
|
@@ -146,7 +155,7 @@ module Awful
|
|
146
155
|
|
147
156
|
desc 'tasks CLUSTER', 'list tasks for CLUSTER'
|
148
157
|
method_option :long, aliases: '-l', type: :boolean, default: false, desc: 'Long listing'
|
149
|
-
method_option :status, aliases: '-s', type: :
|
158
|
+
method_option :status, aliases: '-s', type: :string, default: 'running', desc: 'choose status to show: running/pending/stopped'
|
150
159
|
def tasks(cluster)
|
151
160
|
status = %w[running pending stopped].find{ |s| s.match(/^#{options[:status]}/i) }
|
152
161
|
arns = ecs.list_tasks(cluster: cluster, desired_status: status.upcase).task_arns
|
data/lib/awful/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.160
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ric Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|