stack_master 0.7.1 → 0.7.2

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: 1026fc8e72f9724d25f153b9f834d2f47c9169d0
4
- data.tar.gz: 53896d1acfa9d1fae0e483c3f05e1209d8eb3359
3
+ metadata.gz: 7c7bca8cc5ad9464ac48f4584a1d85cd14bb8e0b
4
+ data.tar.gz: c39f36d3f6455097c66a0e1284eab2c5d7402b64
5
5
  SHA512:
6
- metadata.gz: 61d778989c04f783c15563f66824cf85c928781d210be3dbcd019d673e03c869269d945da426fd24c594e4dff436857024e26f4a6a317ee8e6d04719b7dc63eb
7
- data.tar.gz: c4f598060a0f8754cc256691965381ccef7f523a39059a979ad11dd951161534458c56db5ca07b7f0f8f6bb4ef98afef0de3af7c416784eacee8c0d773093de9
6
+ metadata.gz: cf9a371a2ed906ce11a8fc77b307786ba0156fb96042d18c49a73747c52399fdfb774e0b6177df376566dec989abf32b162697675c80a14915a8db754eee368d
7
+ data.tar.gz: 740933a0d714f31265014462db257c930c65c3bfdf9e9b8dcfdf63b6379f7e362b55d2c121de2d0babd031cd8c2cffb1634a63bce426d0065b567d84f672f275
@@ -76,6 +76,7 @@ module StackMaster
76
76
  end
77
77
 
78
78
  def update_stack
79
+ upload_files
79
80
  @change_set = ChangeSet.create(stack_options)
80
81
  halt!(@change_set.status_reason) if @change_set.failed?
81
82
  @change_set.display(StackMaster.stdout)
@@ -83,7 +84,6 @@ module StackMaster
83
84
  ChangeSet.delete(@change_set.id)
84
85
  halt! "Stack update aborted"
85
86
  end
86
- upload_files
87
87
  execute_change_set
88
88
  end
89
89
 
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -79,6 +79,12 @@ RSpec.describe StackMaster::Commands::Apply do
79
79
  metadata: { md5: Digest::MD5.hexdigest(template_body).to_s }
80
80
  )
81
81
  end
82
+
83
+ it 'uploads to S3 before creating a changeset' do
84
+ expect(s3).to receive(:put_object).ordered
85
+ expect(StackMaster::ChangeSet).to receive(:create).ordered
86
+ apply
87
+ end
82
88
  end
83
89
 
84
90
  context 'the changeset failed to create' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Hodgkiss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-25 00:00:00.000000000 Z
12
+ date: 2016-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler