rake_terraform 0.32.0.pre.1 → 0.32.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rake_terraform/tasks/destroy.rb +15 -9
- data/lib/rake_terraform/tasks/output.rb +19 -13
- data/lib/rake_terraform/tasks/plan.rb +18 -12
- data/lib/rake_terraform/tasks/provision.rb +21 -15
- data/lib/rake_terraform/tasks/validate.rb +18 -12
- data/lib/rake_terraform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfaab63a83886a6117c4cb3b0a9a8dfaecd918853dfa7c51320f535637c3a8ae
|
4
|
+
data.tar.gz: 0e9ca66219cc4b7c73ad1390acf8c2c7ed0c96fb7cb49158d4847ee9ee29ef40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25e6f120492c3c463fd69281cb437786f99b2ca008e4240e8103388d2c7d7f8beda9ff768f0ab79afe4f17ff9f720996ee100fedf188aab2621845c5478e2b44
|
7
|
+
data.tar.gz: 381d93d09a6570bda0b954d3933cfb13d5c4e58aa6b3dabe4a8956f70bdaff19cf8933a82f864527adf62cc9be5399f752814e1297a89eae3b1fdebdca217e43
|
data/Gemfile.lock
CHANGED
@@ -38,19 +38,10 @@ module RakeTerraform
|
|
38
38
|
|
39
39
|
puts "Destroying #{configuration_name}".cyan
|
40
40
|
|
41
|
-
configuration_directory = File.join(work_directory, source_directory)
|
42
|
-
|
43
|
-
RubyTerraform.clean(
|
44
|
-
directory: configuration_directory)
|
45
|
-
|
46
|
-
mkdir_p File.dirname(configuration_directory)
|
47
|
-
cp_r source_directory, configuration_directory
|
48
|
-
|
49
41
|
params = OpenStruct.new({
|
50
42
|
configuration_name: configuration_name,
|
51
43
|
source_directory: source_directory,
|
52
44
|
work_directory: work_directory,
|
53
|
-
configuration_directory: configuration_directory,
|
54
45
|
backend_config: backend_config,
|
55
46
|
var_file: var_file,
|
56
47
|
state_file: state_file,
|
@@ -60,6 +51,21 @@ module RakeTerraform
|
|
60
51
|
backup_file: backup_file,
|
61
52
|
})
|
62
53
|
|
54
|
+
derived_source_directory = source_directory.respond_to?(:call) ?
|
55
|
+
source_directory.call(
|
56
|
+
*[args, params].slice(0, source_directory.arity)) :
|
57
|
+
source_directory
|
58
|
+
|
59
|
+
configuration_directory = File.join(work_directory, derived_source_directory)
|
60
|
+
|
61
|
+
RubyTerraform.clean(
|
62
|
+
directory: configuration_directory)
|
63
|
+
|
64
|
+
mkdir_p File.dirname(configuration_directory)
|
65
|
+
cp_r derived_source_directory, configuration_directory
|
66
|
+
|
67
|
+
params.configuration_directory = configuration_directory
|
68
|
+
|
63
69
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
64
70
|
backend_config.call(
|
65
71
|
*[args, params].slice(0, backend_config.arity)) :
|
@@ -34,25 +34,31 @@ module RakeTerraform
|
|
34
34
|
|
35
35
|
puts "Output of #{configuration_name}".cyan
|
36
36
|
|
37
|
-
|
37
|
+
params = OpenStruct.new({
|
38
|
+
configuration_name: configuration_name,
|
39
|
+
source_directory: source_directory,
|
40
|
+
work_directory: work_directory,
|
41
|
+
backend_config: backend_config,
|
42
|
+
state_file: state_file,
|
43
|
+
debug: debug,
|
44
|
+
no_color: no_color,
|
45
|
+
no_print_output: no_print_output,
|
46
|
+
})
|
47
|
+
|
48
|
+
derived_source_directory = source_directory.respond_to?(:call) ?
|
49
|
+
source_directory.call(
|
50
|
+
*[args, params].slice(0, source_directory.arity)) :
|
51
|
+
source_directory
|
52
|
+
|
53
|
+
configuration_directory = File.join(work_directory, derived_source_directory)
|
38
54
|
|
39
55
|
RubyTerraform.clean(
|
40
56
|
directory: configuration_directory)
|
41
57
|
|
42
58
|
mkdir_p File.dirname(configuration_directory)
|
43
|
-
cp_r
|
59
|
+
cp_r derived_source_directory, configuration_directory
|
44
60
|
|
45
|
-
params =
|
46
|
-
configuration_name: configuration_name,
|
47
|
-
source_directory: source_directory,
|
48
|
-
work_directory: work_directory,
|
49
|
-
configuration_directory: configuration_directory,
|
50
|
-
backend_config: backend_config,
|
51
|
-
state_file: state_file,
|
52
|
-
debug: debug,
|
53
|
-
no_color: no_color,
|
54
|
-
no_print_output: no_print_output,
|
55
|
-
})
|
61
|
+
params.configuration_directory = configuration_directory
|
56
62
|
|
57
63
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
58
64
|
backend_config.call(
|
@@ -38,24 +38,30 @@ module RakeTerraform
|
|
38
38
|
|
39
39
|
puts "Planning #{configuration_name}".cyan
|
40
40
|
|
41
|
-
|
41
|
+
params = OpenStruct.new({
|
42
|
+
configuration_name: configuration_name,
|
43
|
+
source_directory: source_directory,
|
44
|
+
work_directory: work_directory,
|
45
|
+
backend_config: backend_config,
|
46
|
+
state_file: state_file,
|
47
|
+
debug: debug,
|
48
|
+
no_color: no_color,
|
49
|
+
})
|
50
|
+
|
51
|
+
derived_source_directory = source_directory.respond_to?(:call) ?
|
52
|
+
source_directory.call(
|
53
|
+
*[args, params].slice(0, source_directory.arity)) :
|
54
|
+
source_directory
|
55
|
+
|
56
|
+
configuration_directory = File.join(work_directory, derived_source_directory)
|
42
57
|
|
43
58
|
RubyTerraform.clean(
|
44
59
|
directory: configuration_directory)
|
45
60
|
|
46
61
|
mkdir_p File.dirname(configuration_directory)
|
47
|
-
cp_r
|
62
|
+
cp_r derived_source_directory, configuration_directory
|
48
63
|
|
49
|
-
params =
|
50
|
-
configuration_name: configuration_name,
|
51
|
-
source_directory: source_directory,
|
52
|
-
work_directory: work_directory,
|
53
|
-
configuration_directory: configuration_directory,
|
54
|
-
backend_config: backend_config,
|
55
|
-
state_file: state_file,
|
56
|
-
debug: debug,
|
57
|
-
no_color: no_color,
|
58
|
-
})
|
64
|
+
params.configuration_directory = configuration_directory
|
59
65
|
|
60
66
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
61
67
|
backend_config.call(
|
@@ -38,27 +38,33 @@ module RakeTerraform
|
|
38
38
|
|
39
39
|
puts "Provisioning #{configuration_name}".cyan
|
40
40
|
|
41
|
-
|
41
|
+
params = OpenStruct.new({
|
42
|
+
configuration_name: configuration_name,
|
43
|
+
source_directory: source_directory,
|
44
|
+
work_directory: work_directory,
|
45
|
+
backend_config: backend_config,
|
46
|
+
var_file: var_file,
|
47
|
+
state_file: state_file,
|
48
|
+
debug: debug,
|
49
|
+
no_color: no_color,
|
50
|
+
no_backup: no_backup,
|
51
|
+
backup_file: backup_file,
|
52
|
+
})
|
53
|
+
|
54
|
+
derived_source_directory = source_directory.respond_to?(:call) ?
|
55
|
+
source_directory.call(
|
56
|
+
*[args, params].slice(0, source_directory.arity)) :
|
57
|
+
source_directory
|
58
|
+
|
59
|
+
configuration_directory = File.join(work_directory, derived_source_directory)
|
42
60
|
|
43
61
|
RubyTerraform.clean(
|
44
62
|
directory: configuration_directory)
|
45
63
|
|
46
64
|
mkdir_p File.dirname(configuration_directory)
|
47
|
-
cp_r
|
65
|
+
cp_r derived_source_directory, configuration_directory
|
48
66
|
|
49
|
-
params =
|
50
|
-
configuration_name: configuration_name,
|
51
|
-
source_directory: source_directory,
|
52
|
-
work_directory: work_directory,
|
53
|
-
configuration_directory: configuration_directory,
|
54
|
-
backend_config: backend_config,
|
55
|
-
var_file: var_file,
|
56
|
-
state_file: state_file,
|
57
|
-
debug: debug,
|
58
|
-
no_color: no_color,
|
59
|
-
no_backup: no_backup,
|
60
|
-
backup_file: backup_file,
|
61
|
-
})
|
67
|
+
params.configuration_directory = configuration_directory
|
62
68
|
|
63
69
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
64
70
|
backend_config.call(
|
@@ -35,24 +35,30 @@ module RakeTerraform
|
|
35
35
|
|
36
36
|
puts "Validating #{configuration_name}".cyan
|
37
37
|
|
38
|
-
|
38
|
+
params = OpenStruct.new({
|
39
|
+
configuration_name: configuration_name,
|
40
|
+
source_directory: source_directory,
|
41
|
+
work_directory: work_directory,
|
42
|
+
backend_config: backend_config,
|
43
|
+
state_file: state_file,
|
44
|
+
debug: debug,
|
45
|
+
no_color: no_color,
|
46
|
+
})
|
47
|
+
|
48
|
+
derived_source_directory = source_directory.respond_to?(:call) ?
|
49
|
+
source_directory.call(
|
50
|
+
*[args, params].slice(0, source_directory.arity)) :
|
51
|
+
source_directory
|
52
|
+
|
53
|
+
configuration_directory = File.join(work_directory, derived_source_directory)
|
39
54
|
|
40
55
|
RubyTerraform.clean(
|
41
56
|
directory: configuration_directory)
|
42
57
|
|
43
58
|
mkdir_p File.dirname(configuration_directory)
|
44
|
-
cp_r
|
59
|
+
cp_r derived_source_directory, configuration_directory
|
45
60
|
|
46
|
-
params =
|
47
|
-
configuration_name: configuration_name,
|
48
|
-
source_directory: source_directory,
|
49
|
-
work_directory: work_directory,
|
50
|
-
configuration_directory: configuration_directory,
|
51
|
-
backend_config: backend_config,
|
52
|
-
state_file: state_file,
|
53
|
-
debug: debug,
|
54
|
-
no_color: no_color,
|
55
|
-
})
|
61
|
+
params.configuration_directory = configuration_directory
|
56
62
|
|
57
63
|
derived_backend_config = backend_config.respond_to?(:call) ?
|
58
64
|
backend_config.call(
|
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.32.0.pre.
|
4
|
+
version: 0.32.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake_dependencies
|