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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +2 -2
- data/lib/rake_terraform/tasks/destroy.rb +5 -1
- data/lib/rake_terraform/tasks/plan.rb +5 -1
- data/lib/rake_terraform/tasks/provision.rb +10 -6
- data/lib/rake_terraform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22997cbb19f9e46fbf4bb73c3d8109b04d854525
|
4
|
+
data.tar.gz: 73fd1005337538954e104b7279120e203b181672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 977ffd227d56d2834a5bb384e1da0d6723f47bb4658b15bc604dd53d1eac856e3eb44d94b14f4ba3aedbec713692317066a47b251b118f6ef24b6fc88de59269
|
7
|
+
data.tar.gz: c28d216bf3c7b3bd2344d991800d33337d067862ea018b3cdfd8597ffe4fd27dd5bc659cd91780b37fe2efbabd740b43c9ae5b650549e230a5d0c0d51602df36
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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:
|
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:
|
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
|
-
|
50
|
-
|
49
|
+
vars.call(*[args, params].slice(0, vars.arity)) :
|
50
|
+
vars
|
51
51
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
52
|
-
|
53
|
-
|
54
|
-
|
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:
|
77
|
+
state: derived_state_file,
|
74
78
|
vars: derived_vars)
|
75
79
|
end
|
76
80
|
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.
|
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-
|
11
|
+
date: 2017-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_dependencies
|