awful 0.0.105 → 0.0.106

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: 622d4c4ff51326df52dbfeb0df618e454c7fcf88
4
- data.tar.gz: c8d362058239b2aa7258a6fe47f8b469e81e6c7b
3
+ metadata.gz: f47d50305aa745ea1d3e1ebccf4019a5834aea45
4
+ data.tar.gz: 68a3a50fcabc0a9afd326836fdc70181f0938844
5
5
  SHA512:
6
- metadata.gz: 7695e14f3e3fadc9eae52e3e56d7c613adc25f95f9d6d1b28f00fbb97f69d22f6d471436c99418788e920c1855cfaf56bb97c3783d94c6c772aaf37d794e6a18
7
- data.tar.gz: 9beea834bd0907f725153d729a26378902fe0915de60b78c6577193466b75213bcdf0588aaa192deb81dbb83435ced9cef0cbd714fb552c0c5a5b871896c6af1
6
+ metadata.gz: df09dbe48421998771f3aa5591430ebd2cccdf2a7a1bd9061e4d9515e01289ad4dce64c376a287c3a35727a629806f6695ab4839737335ab31a122365bc81cbd
7
+ data.tar.gz: fc42025f14e2f16a17a5cebbbb75c9091a059fccdcb37cb2fb398e002e39030afce635f230465b8ba51e0992cfef2d45b3269828a57018d58549558fe5e29295
@@ -35,6 +35,18 @@ module Awful
35
35
  end
36
36
  end
37
37
 
38
+ ## if no task given , run this
39
+ default_task :list
40
+
41
+ desc 'list STACK_NAME [CHANGE_SET_NAME]', 'meta task to call ls or changes'
42
+ def list(stack_name, change_set_name = nil)
43
+ if change_set_name
44
+ changes(stack_name, change_set_name)
45
+ else
46
+ ls(stack_name)
47
+ end
48
+ end
49
+
38
50
  desc 'ls STACK_NAME', 'list change sets for stack'
39
51
  method_option :long, aliases: '-l', default: false, desc: 'Long listing'
40
52
  def ls(stack_name)
@@ -48,15 +60,15 @@ module Awful
48
60
  ]
49
61
  }
50
62
  else
51
- puts list.map(&:stack_name)
63
+ puts list.map(&:change_set_name)
52
64
  end
53
65
  end
54
66
  end
55
67
 
56
68
  desc 'changes STACK_NAME CHANGE_SET_NAME', 'list changes for the change set'
57
69
  def changes(stack_name, change_set_name)
58
- cf.describe_change_set(stack_name: stack_name, change_set_name: change_set_name).changes.tap do |changes|
59
- print_table changes.map { |change|
70
+ cf.describe_change_set(stack_name: stack_name, change_set_name: change_set_name).tap do |set|
71
+ print_table set.changes.map { |change|
60
72
  rc = change.resource_change
61
73
  [
62
74
  color(rc.action),
@@ -67,7 +79,6 @@ module Awful
67
79
  ]
68
80
  }
69
81
  end
70
-
71
82
  end
72
83
  end
73
84
 
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.105'
2
+ VERSION = '0.0.106'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.105
4
+ version: 0.0.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister