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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb6e7ca3e77e33a7ac755b4c5cc1997ed4c2a5e6
4
- data.tar.gz: 89237af369dde02a1831430cc24db4434493d773
3
+ metadata.gz: 976c227fd5ff38b9c243fcfbe722ec57a36b84c6
4
+ data.tar.gz: 7e7b4e7eb9a2cd6dd7d02e2223ff3840427b1765
5
5
  SHA512:
6
- metadata.gz: dfac8dd0b55397b901b3bc1386c1fe50b7d0a0ab5e77034c51eb4510bdb7ea8e74354f4e3f3cc4209a173aa23640cc0dd2a4f12cab9ba66e63773e078c830a16
7
- data.tar.gz: 6dcafed95b581ca2c2988d7f4d66094321b71f69390075e1bc831248a0868b1d23c4e2c010765f495290456006bbafcdc807c472162c5057f9b644fdf0c88a49
6
+ metadata.gz: 45f8096b48a63ae34a4d3197e1f0aad8af7ebeb4700887e8dd9620603a807b654cf97f7c6f836a1c44c13994615c212a3f3902bcd2ce0e6d983a98962ff74d69
7
+ data.tar.gz: 11b18f323231122a01687bee01d38efe5a001a5944fc6c087e2eecd74d34bfdbe38b8c11f280bb90a8f78daeb7c3cab58a65cad0ebcc830648a6e9eb016132d8
@@ -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: :boolean, default: 'running', desc: 'choose status to show: running/pending/stopped'
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
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.159'
2
+ VERSION = '0.0.160'
3
3
  end
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.159
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-26 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler