simple_deploy 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 24f82fca2648672f8fc422b74609963982ca233c
4
- data.tar.gz: 7c7aa2141da214186636e1b4ccb2903bbc9eb5a3
3
+ metadata.gz: ebaeaca78fc47bc6bccf96bc14c6e9e45674d2d2
4
+ data.tar.gz: f73df170ccaa5d0f646d87e084e4815e62ef3c3d
5
5
  SHA512:
6
- metadata.gz: c8750861dc63b89aa920352e504bd0b07f8340e8ffa55b3b82c64f40f977de6ab936f01830690962df876d583832616922ab251ac7a95ddd034c6d636f8d09be
7
- data.tar.gz: 4c8cbb090d8949fef59d27206a3eed588fc3434869835edf96c4aa787faefe4ba31c51c43b4017453a1cb9ac7d2128034c2336a118a5a985f9cd221a0c69a09e
6
+ metadata.gz: 1c4c6995dc63e8ae6126cba0c4c7c391b50f854b1c1b2a291a4e2b27db0a645166c841a19a46fbb9ad057496979ec03bfe3cf897e29c3524c8996df3ac56ffb1
7
+ data.tar.gz: 2385d7000d4fba22b0ede10ff47a1ddf7230970565ab5fe8780baaf4b22da15e38886563cbf8506e2d3d2aada49bdf844dc321096fddd2a0549cdbe3cb4e1586
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## v0.9.2 (04/29/14):
4
+
5
+ * Skip nested stack if status is deleted (thanks @liwenbing)
6
+
3
7
  ## v0.9.1 (04/24/14):
4
8
 
5
9
  * Pinning to fog-core 1.21.1
@@ -67,7 +67,7 @@ module SimpleDeploy
67
67
  def nested_stacks_names(stack_name)
68
68
  cf_stack_resources = cloud_formation.stack_resources stack_name
69
69
  asgs = cf_stack_resources.select do |r|
70
- r['ResourceType'] == 'AWS::CloudFormation::Stack'
70
+ r['ResourceType'] == 'AWS::CloudFormation::Stack' && cloud_formation.stack_status(r['PhysicalResourceId']) != 'DELETE_COMPLETE'
71
71
  end
72
72
  asgs.any? ? asgs.map {|asg| asg['PhysicalResourceId'] } : []
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleDeploy
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -107,6 +107,9 @@ describe SimpleDeploy::AWS::InstanceReader do
107
107
  before do
108
108
  stack_resource_results = []
109
109
  @nested_stacks = ['nested_stack1', 'nested_stack2'].each do |nested_stack|
110
+ @cloud_formation_mock.should_receive(:stack_status).
111
+ with(nested_stack).
112
+ and_return 'CREATE_COMPLETE'
110
113
  stack_resource_results << { 'StackName' => 'stack',
111
114
  'ResourceType' => 'AWS::CloudFormation::Stack',
112
115
  'PhysicalResourceId' => nested_stack }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Weaver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fakefs