rake_terraform 0.15.0 → 0.16.0

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: 60b86d2a817b0c43c2cdfe60e4fd291074b15995
4
- data.tar.gz: 52608514ae6cbb33f07ad2dd9734ee943d723666
3
+ metadata.gz: 22997cbb19f9e46fbf4bb73c3d8109b04d854525
4
+ data.tar.gz: 73fd1005337538954e104b7279120e203b181672
5
5
  SHA512:
6
- metadata.gz: 38cd2dedc2cc2432cc0de494c60e2ca898bf06dda6c19f9e033acc6bb1b7f627e3be904a0743e15d4799192f4a5a5864b846b5d84e5220e1f50bcd76f94d8a66
7
- data.tar.gz: eb6be293b21f8cec81356ef64780d418385b3afc212d9b481decf1ca0ca5c8a152365eb4b778d4c7c3b7621022523ea3df12acd6415793df52366a91e8e11f8e
6
+ metadata.gz: 977ffd227d56d2834a5bb384e1da0d6723f47bb4658b15bc604dd53d1eac856e3eb44d94b14f4ba3aedbec713692317066a47b251b118f6ef24b6fc88de59269
7
+ data.tar.gz: c28d216bf3c7b3bd2344d991800d33337d067862ea018b3cdfd8597ffe4fd27dd5bc659cd91780b37fe2efbabd740b43c9ae5b650549e230a5d0c0d51602df36
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.16.0 (September 28th, 2017)
2
+
3
+ IMPROVEMENTS:
4
+
5
+ * The state file can now be specified as a lambda that receives task arguments
6
+ and parameters and is expected to return the state file path.
7
+
1
8
  ## 0.11.1 (September 3rd, 2017)
2
9
 
3
10
  IMPROVEMENTS:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (0.15.0)
4
+ rake_terraform (0.16.0)
5
5
  rake_dependencies (~> 0.15)
6
6
  ruby-terraform (~> 0.9)
7
7
 
@@ -66,4 +66,4 @@ DEPENDENCIES
66
66
  rspec (~> 3.0)
67
67
 
68
68
  BUNDLED WITH
69
- 1.15.4
69
+ 1.16.0.pre.2
@@ -51,6 +51,10 @@ module RakeTerraform
51
51
  backend_config.call(
52
52
  *[args, params].slice(0, backend_config.arity)) :
53
53
  backend_config
54
+ derived_state_file = state_file.respond_to?(:call) ?
55
+ state_file.call(
56
+ *[args, params].slice(0, state_file.arity)) :
57
+ state_file
54
58
 
55
59
  puts "Destroying #{configuration_name}"
56
60
 
@@ -69,7 +73,7 @@ module RakeTerraform
69
73
  no_color: no_color,
70
74
  no_backup: no_backup,
71
75
  backup: backup_file,
72
- state: state_file,
76
+ state: derived_state_file,
73
77
  vars: derived_vars)
74
78
  end
75
79
  end
@@ -50,6 +50,10 @@ module RakeTerraform
50
50
  backend_config.call(
51
51
  *[args, params].slice(0, backend_config.arity)) :
52
52
  backend_config
53
+ derived_state_file = state_file.respond_to?(:call) ?
54
+ state_file.call(
55
+ *[args, params].slice(0, state_file.arity)) :
56
+ state_file
53
57
 
54
58
  puts "Planning #{configuration_name}"
55
59
 
@@ -66,7 +70,7 @@ module RakeTerraform
66
70
  RubyTerraform.plan(
67
71
  no_color: no_color,
68
72
  destroy: destroy,
69
- state: state_file,
73
+ state: derived_state_file,
70
74
  plan: plan_file,
71
75
  vars: derived_vars)
72
76
  end
@@ -46,12 +46,16 @@ module RakeTerraform
46
46
  })
47
47
 
48
48
  derived_vars = vars.respond_to?(:call) ?
49
- vars.call(*[args, params].slice(0, vars.arity)) :
50
- vars
49
+ vars.call(*[args, params].slice(0, vars.arity)) :
50
+ vars
51
51
  derived_backend_config = backend_config.respond_to?(:call) ?
52
- backend_config.call(
53
- *[args, params].slice(0, backend_config.arity)) :
54
- backend_config
52
+ backend_config.call(
53
+ *[args, params].slice(0, backend_config.arity)) :
54
+ backend_config
55
+ derived_state_file = state_file.respond_to?(:call) ?
56
+ state_file.call(
57
+ *[args, params].slice(0, state_file.arity)) :
58
+ state_file
55
59
 
56
60
  puts "Provisioning #{configuration_name}"
57
61
 
@@ -70,7 +74,7 @@ module RakeTerraform
70
74
  no_color: no_color,
71
75
  no_backup: no_backup,
72
76
  backup: backup_file,
73
- state: state_file,
77
+ state: derived_state_file,
74
78
  vars: derived_vars)
75
79
  end
76
80
  end
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-05 00:00:00.000000000 Z
11
+ date: 2017-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies