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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2951e123458ec33c6a91355670fba160a052f9078cfa8af856fa6abb03d85207
4
- data.tar.gz: 36e84d173b3faca0d26034ebd4b86d7a4f222b2748936dab9e37197df9c778eb
3
+ metadata.gz: bfaab63a83886a6117c4cb3b0a9a8dfaecd918853dfa7c51320f535637c3a8ae
4
+ data.tar.gz: 0e9ca66219cc4b7c73ad1390acf8c2c7ed0c96fb7cb49158d4847ee9ee29ef40
5
5
  SHA512:
6
- metadata.gz: 43e3aff7559e35ec3cf9c8feb3136db3fdfd14c11ef85b5a78bcf0b63dd74274703b89b6ab041062d9139fb6f4a9ea824154833f285ad5361f3fc7a135d2b411
7
- data.tar.gz: 78ba167401324c79d41b446c722888b1d635cfb0baa2dc35723ff31c993c8bec68b3d4bdc1a85b1a3d77faf097a841d5c8047e71cc308b293bee94831c1c84d4
6
+ metadata.gz: 25e6f120492c3c463fd69281cb437786f99b2ca008e4240e8103388d2c7d7f8beda9ff768f0ab79afe4f17ff9f720996ee100fedf188aab2621845c5478e2b44
7
+ data.tar.gz: 381d93d09a6570bda0b954d3933cfb13d5c4e58aa6b3dabe4a8956f70bdaff19cf8933a82f864527adf62cc9be5399f752814e1297a89eae3b1fdebdca217e43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (0.32.0.pre.1)
4
+ rake_terraform (0.32.0.pre.2)
5
5
  colored2 (~> 3.1)
6
6
  rake_dependencies (~> 0.23)
7
7
  ruby-terraform (~> 0.46)
@@ -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
- configuration_directory = File.join(work_directory, source_directory)
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 source_directory, configuration_directory
59
+ cp_r derived_source_directory, configuration_directory
44
60
 
45
- params = OpenStruct.new({
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
- configuration_directory = File.join(work_directory, source_directory)
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 source_directory, configuration_directory
62
+ cp_r derived_source_directory, configuration_directory
48
63
 
49
- params = OpenStruct.new({
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
- configuration_directory = File.join(work_directory, source_directory)
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 source_directory, configuration_directory
65
+ cp_r derived_source_directory, configuration_directory
48
66
 
49
- params = OpenStruct.new({
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
- configuration_directory = File.join(work_directory, source_directory)
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 source_directory, configuration_directory
59
+ cp_r derived_source_directory, configuration_directory
45
60
 
46
- params = OpenStruct.new({
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(
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "0.32.0.pre.1"
2
+ VERSION = "0.32.0.pre.2"
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.32.0.pre.1
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-07 00:00:00.000000000 Z
11
+ date: 2019-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies