cloudspin-stack 0.1.20 → 0.1.21

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: 7367da5398e58437223ee59141a3acfde89306c4
4
- data.tar.gz: c7d4175e095df03cbd6e51bb8ba81a7cb9e9bef4
3
+ metadata.gz: b53a86446e9bf8c12ff15ecf6f81cbe610ae360f
4
+ data.tar.gz: 3d79b8b4fdba03e2b6b44e9d24481a130f2de56c
5
5
  SHA512:
6
- metadata.gz: 8677124654c9c41f12a14c60d825d565d2574ae98ae07bc6fba1fdb86d9b60c0aefadc392dde3e54ceae77260519e05f7bb8b17fe633c3c0e23eb85f88a84732
7
- data.tar.gz: c6f53cae6e58db92b63b72a32d869a5a40557affbc5d6c78d17387953c8235a442fbc3321432e2494f753959791c6fa12976c425922c01e02b8f64dea17e702b
6
+ metadata.gz: 3bf07b8a78833ae65cde6e2b4ecbeaba5059da734bf96350d6fbd02d1354fa83cae3df68ae8266b57f0cf1d58c38b491c30555f06b5845c5c51868f1b10e65ba
7
+ data.tar.gz: 9301510029f2c7d7bb2bd287348e2378fc11a7e818d0473ffcf4b30ca411c2b405dd4261e2b83e8413e9d6e4f6764c84b026f7e09108068a89abaf585ae2e872
@@ -154,7 +154,7 @@ module Cloudspin
154
154
  def terraform_init_params
155
155
  if configuration.has_remote_state_configuration?
156
156
  {
157
- backend: 's3',
157
+ backend: 'true',
158
158
  backend_config: backend_parameters
159
159
  }
160
160
  else
@@ -190,10 +190,7 @@ module Cloudspin
190
190
 
191
191
  def backend_parameters
192
192
  if configuration.has_remote_state_configuration?
193
- {
194
- 'bucket' => configuration.terraform_backend['bucket'],
195
- 'key' => configuration.terraform_backend['key']
196
- }
193
+ configuration.terraform_backend
197
194
  else
198
195
  {}
199
196
  end
@@ -73,11 +73,12 @@ module Cloudspin
73
73
  end
74
74
 
75
75
  def default_state_folder
76
+ FileUtils.mkdir_p "#{base_folder}/state"
76
77
  Pathname.new("#{base_folder}/state/#{instance_identifier}").realdirpath.to_s
77
78
  end
78
79
 
79
80
  def default_state_key
80
- "/#{instance_identifier}.tfstate"
81
+ "#{instance_identifier}.tfstate"
81
82
  end
82
83
 
83
84
  def instance_identifier
@@ -1,5 +1,5 @@
1
1
  module Cloudspin
2
2
  module Stack
3
- VERSION = '0.1.20'
3
+ VERSION = '0.1.21'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudspin-stack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'kief '