awful 0.0.75 → 0.0.76

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: 6bec0e4317449f5c7364c828658d0d70385af170
4
- data.tar.gz: b508430a4175eeb31cf3f2bfc2307461506c631b
3
+ metadata.gz: 7b84cf0cb78f2445f7442c133a2c2af0737410d4
4
+ data.tar.gz: 9011b1c6a25a9a4e9943a63b60d356d08fe217d9
5
5
  SHA512:
6
- metadata.gz: 5830ca455cd41dd0da1940211830a1d677773e976cef79da87cca3c5515d2bd714b8ed20fd2da5092d987f1d41c7ccaef2b6c29648ac4c8081f4e9ea90509391
7
- data.tar.gz: 6d706e98078e370b2901c7c29097d81f0872e1ebeda68a064b3d77ff1590c23f8e2a45770770bb70d9b61459cc180d8562b767f50b2026795df1ccdff84a0597
6
+ metadata.gz: acc1cb32a882ab33fd5e35d8997f50d058b778a721cb7729406a721b7b82a5054c52d057225eb99c0cb17f57cfaa1f8f458b485b24d9f1ced1ccca3c7081f39d
7
+ data.tar.gz: 02206a2cfb79721246c58c0562f729fbd56df0f3f7281597a2bb9c2c524c27799c7d31d0907d254db632aa28650df2eec44bc572a521b8960d1fc65b6b38ad6f
@@ -50,6 +50,16 @@ module Awful
50
50
  end
51
51
  end
52
52
 
53
+ desc 'exists NAME', 'check if stack exists'
54
+ def exists(name)
55
+ begin
56
+ cf.describe_stacks(stack_name: name)
57
+ true
58
+ rescue Aws::CloudFormation::Errors::ValidationError
59
+ false
60
+ end.tap(&method(:puts))
61
+ end
62
+
53
63
  desc 'dump NAME', 'describe stack named NAME'
54
64
  def dump(name)
55
65
  cf.describe_stacks(stack_name: name).stacks.tap do |stacks|
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.75'
2
+ VERSION = '0.0.76'
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.75
4
+ version: 0.0.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2016-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler