rake_terraform 0.18.0 → 0.19.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: ff110da056976fa317618cc3d0ca54cada2d333b
4
- data.tar.gz: 121f1363babcf40c02487f50ea2d9271893787d8
3
+ metadata.gz: 6dd8b03f7fee863837f431d357fbb44fdb862162
4
+ data.tar.gz: 86710ed88ae493fde0168794502a8390ba81169d
5
5
  SHA512:
6
- metadata.gz: 7bfb48fce0f0c36252e0033a4a0a804e62aa25dd440c2758ddad7b7cef91b06912ef6432e06bdcd99c237668fd1ce171047ab9f2686d3c8c8a57116f8964e549
7
- data.tar.gz: 26f45a033eaa9a8e4c80695c196e674b6eabb5a38733e790739f27fe647c5cbd80afdc34123dbe86c9a541b4a13b75aa455a2c0ef2f87bc4cfb0186ddc12af6a
6
+ metadata.gz: e53df537564e7eb06ed652a377940dd9a4bc096aaba097395f792e229289323d86edbcac40adfd9f69e39030ccd83087f3191edefe53402da24fd90c53c6a81e
7
+ data.tar.gz: b0cf4c7524e546599c1afcafb35829228c21f49aa56858f2b84be6807376f7339063c86675c64502b910841f013409c07d85c89fb4a16a24d70f371ae136c9f3
data/.gitignore CHANGED
@@ -11,6 +11,7 @@
11
11
  /test/tmp/
12
12
  /test/version_tmp/
13
13
  /tmp/
14
+ .rakeTasks
14
15
 
15
16
  ## Documentation cache and generated files:
16
17
  /.yardoc/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p648
1
+ 2.0.0-p648
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (0.18.0)
5
- colorize
4
+ rake_terraform (0.19.0)
5
+ colorize (~> 0.8)
6
6
  rake_dependencies (~> 0.15)
7
- ruby-terraform (~> 0.11)
7
+ ruby-terraform (>= 0.11.2)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -48,7 +48,7 @@ GEM
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
49
  rspec-support (~> 3.5.0)
50
50
  rspec-support (3.5.0)
51
- ruby-terraform (0.13.0)
51
+ ruby-terraform (0.15.0)
52
52
  lino (~> 1.1)
53
53
  rubyzip (1.2.1)
54
54
  thread_safe (0.3.5)
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  rspec (~> 3.0)
69
69
 
70
70
  BUNDLED WITH
71
- 1.16.3
71
+ 1.16.4
@@ -8,6 +8,7 @@ module RakeTerraform
8
8
  parameter :backend_config
9
9
 
10
10
  parameter :vars
11
+ parameter :var_file
11
12
  parameter :state_file
12
13
 
13
14
  # Emit additional information for debugging purposes
@@ -53,6 +54,7 @@ module RakeTerraform
53
54
  t.backend_config = backend_config
54
55
 
55
56
  t.vars = vars
57
+ t.var_file = var_file
56
58
  t.state_file = state_file
57
59
 
58
60
  t.debug = debug
@@ -71,6 +73,7 @@ module RakeTerraform
71
73
  t.backend_config = backend_config
72
74
 
73
75
  t.vars = vars
76
+ t.var_file = var_file
74
77
  t.state_file = state_file
75
78
 
76
79
  t.debug = debug
@@ -91,6 +94,7 @@ module RakeTerraform
91
94
  t.backend_config = backend_config
92
95
 
93
96
  t.vars = vars
97
+ t.var_file = var_file
94
98
  t.state_file = state_file
95
99
 
96
100
  t.debug = debug
@@ -112,6 +116,7 @@ module RakeTerraform
112
116
  t.backend_config = backend_config
113
117
 
114
118
  t.vars = vars
119
+ t.var_file = var_file
115
120
  t.state_file = state_file
116
121
 
117
122
  t.debug = debug
@@ -16,6 +16,7 @@ module RakeTerraform
16
16
  parameter :backend_config
17
17
 
18
18
  parameter :vars, default: {}
19
+ parameter :var_file
19
20
  parameter :state_file
20
21
 
21
22
  parameter :debug, :default => false
@@ -39,12 +40,19 @@ module RakeTerraform
39
40
 
40
41
  configuration_directory = File.join(work_directory, source_directory)
41
42
 
43
+ RubyTerraform.clean(
44
+ directory: configuration_directory)
45
+
46
+ mkdir_p File.dirname(configuration_directory)
47
+ cp_r source_directory, configuration_directory
48
+
42
49
  params = OpenStruct.new({
43
50
  configuration_name: configuration_name,
44
51
  source_directory: source_directory,
45
52
  work_directory: work_directory,
46
53
  configuration_directory: configuration_directory,
47
54
  backend_config: backend_config,
55
+ var_file: var_file,
48
56
  state_file: state_file,
49
57
  debug: debug,
50
58
  no_color: no_color,
@@ -64,12 +72,6 @@ module RakeTerraform
64
72
  *[args, params].slice(0, state_file.arity)) :
65
73
  state_file
66
74
 
67
- RubyTerraform.clean(
68
- directory: configuration_directory)
69
-
70
- mkdir_p File.dirname(configuration_directory)
71
- cp_r source_directory, configuration_directory
72
-
73
75
  Dir.chdir(configuration_directory) do
74
76
  RubyTerraform.init(
75
77
  backend_config: derived_backend_config,
@@ -80,7 +82,8 @@ module RakeTerraform
80
82
  no_backup: no_backup,
81
83
  backup: backup_file,
82
84
  state: derived_state_file,
83
- vars: derived_vars)
85
+ vars: derived_vars,
86
+ var_file: var_file)
84
87
  end
85
88
  end
86
89
  end
@@ -36,6 +36,12 @@ module RakeTerraform
36
36
 
37
37
  configuration_directory = File.join(work_directory, source_directory)
38
38
 
39
+ RubyTerraform.clean(
40
+ directory: configuration_directory)
41
+
42
+ mkdir_p File.dirname(configuration_directory)
43
+ cp_r source_directory, configuration_directory
44
+
39
45
  params = OpenStruct.new({
40
46
  configuration_name: configuration_name,
41
47
  source_directory: source_directory,
@@ -57,12 +63,6 @@ module RakeTerraform
57
63
  *[args, params].slice(0, state_file.arity)) :
58
64
  state_file
59
65
 
60
- RubyTerraform.clean(
61
- directory: configuration_directory)
62
-
63
- mkdir_p File.dirname(configuration_directory)
64
- cp_r source_directory, configuration_directory
65
-
66
66
  Dir.chdir(configuration_directory) do
67
67
  RubyTerraform.init(
68
68
  backend_config: derived_backend_config,
@@ -16,6 +16,7 @@ module RakeTerraform
16
16
  parameter :backend_config
17
17
 
18
18
  parameter :vars, default: {}
19
+ parameter :var_file
19
20
  parameter :state_file
20
21
 
21
22
  parameter :debug, :default => false
@@ -39,6 +40,12 @@ module RakeTerraform
39
40
 
40
41
  configuration_directory = File.join(work_directory, source_directory)
41
42
 
43
+ RubyTerraform.clean(
44
+ directory: configuration_directory)
45
+
46
+ mkdir_p File.dirname(configuration_directory)
47
+ cp_r source_directory, configuration_directory
48
+
42
49
  params = OpenStruct.new({
43
50
  configuration_name: configuration_name,
44
51
  source_directory: source_directory,
@@ -62,12 +69,6 @@ module RakeTerraform
62
69
  *[args, params].slice(0, state_file.arity)) :
63
70
  state_file
64
71
 
65
- RubyTerraform.clean(
66
- directory: configuration_directory)
67
-
68
- mkdir_p File.dirname(configuration_directory)
69
- cp_r source_directory, configuration_directory
70
-
71
72
  Dir.chdir(configuration_directory) do
72
73
  RubyTerraform.init(
73
74
  backend_config: derived_backend_config,
@@ -77,7 +78,8 @@ module RakeTerraform
77
78
  destroy: destroy,
78
79
  state: derived_state_file,
79
80
  plan: plan_file,
80
- vars: derived_vars)
81
+ vars: derived_vars,
82
+ var_file: var_file)
81
83
  end
82
84
  end
83
85
  end
@@ -16,6 +16,7 @@ module RakeTerraform
16
16
  parameter :backend_config
17
17
 
18
18
  parameter :vars, default: {}
19
+ parameter :var_file
19
20
  parameter :state_file
20
21
 
21
22
  parameter :debug, :default => false
@@ -39,12 +40,19 @@ module RakeTerraform
39
40
 
40
41
  configuration_directory = File.join(work_directory, source_directory)
41
42
 
43
+ RubyTerraform.clean(
44
+ directory: configuration_directory)
45
+
46
+ mkdir_p File.dirname(configuration_directory)
47
+ cp_r source_directory, configuration_directory
48
+
42
49
  params = OpenStruct.new({
43
50
  configuration_name: configuration_name,
44
51
  source_directory: source_directory,
45
52
  work_directory: work_directory,
46
53
  configuration_directory: configuration_directory,
47
54
  backend_config: backend_config,
55
+ var_file: var_file,
48
56
  state_file: state_file,
49
57
  debug: debug,
50
58
  no_color: no_color,
@@ -64,12 +72,6 @@ module RakeTerraform
64
72
  *[args, params].slice(0, state_file.arity)) :
65
73
  state_file
66
74
 
67
- RubyTerraform.clean(
68
- directory: configuration_directory)
69
-
70
- mkdir_p File.dirname(configuration_directory)
71
- cp_r source_directory, configuration_directory
72
-
73
75
  Dir.chdir(configuration_directory) do
74
76
  RubyTerraform.init(
75
77
  backend_config: derived_backend_config,
@@ -80,7 +82,8 @@ module RakeTerraform
80
82
  no_backup: no_backup,
81
83
  backup: backup_file,
82
84
  state: derived_state_file,
83
- vars: derived_vars)
85
+ vars: derived_vars,
86
+ var_file: var_file)
84
87
  end
85
88
  end
86
89
  end
@@ -16,6 +16,7 @@ module RakeTerraform
16
16
  parameter :backend_config
17
17
 
18
18
  parameter :vars, default: {}
19
+ parameter :var_file
19
20
  parameter :state_file
20
21
 
21
22
  parameter :debug, :default => false
@@ -36,6 +37,12 @@ module RakeTerraform
36
37
 
37
38
  configuration_directory = File.join(work_directory, source_directory)
38
39
 
40
+ RubyTerraform.clean(
41
+ directory: configuration_directory)
42
+
43
+ mkdir_p File.dirname(configuration_directory)
44
+ cp_r source_directory, configuration_directory
45
+
39
46
  params = OpenStruct.new({
40
47
  configuration_name: configuration_name,
41
48
  source_directory: source_directory,
@@ -59,12 +66,6 @@ module RakeTerraform
59
66
  *[args, params].slice(0, state_file.arity)) :
60
67
  state_file
61
68
 
62
- RubyTerraform.clean(
63
- directory: configuration_directory)
64
-
65
- mkdir_p File.dirname(configuration_directory)
66
- cp_r source_directory, configuration_directory
67
-
68
69
  Dir.chdir(configuration_directory) do
69
70
  RubyTerraform.init(
70
71
  backend_config: derived_backend_config,
@@ -72,7 +73,8 @@ module RakeTerraform
72
73
  RubyTerraform.validate(
73
74
  no_color: no_color,
74
75
  state: derived_state_file,
75
- vars: derived_vars)
76
+ vars: derived_vars,
77
+ var_file: var_file)
76
78
  end
77
79
  end
78
80
  end
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "0.18.0"
2
+ VERSION = "0.19.0"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = 'Rake tasks for running terraform.'
13
13
  spec.description = 'Provides rake tasks for executing terraform commands as part of a rake build.'
14
- spec.homepage = 'https://github.com/tobyclemson/rake_terraform'
14
+ spec.homepage = 'https://github.com/infrablocks/rake_terraform'
15
15
  spec.license = 'MIT'
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ['lib']
23
23
 
24
24
  spec.add_dependency 'rake_dependencies', '~> 0.15'
25
- spec.add_dependency 'ruby-terraform', '~> 0.11'
26
- spec.add_dependency 'colorize'
25
+ spec.add_dependency 'ruby-terraform', '>= 0.11.2'
26
+ spec.add_dependency 'colorize', '~> 0.8'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.14'
29
29
  spec.add_development_dependency 'rake', '~> 11.0'
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.18.0
4
+ version: 0.19.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: 2018-08-22 00:00:00.000000000 Z
11
+ date: 2018-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: ruby-terraform
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.11'
33
+ version: 0.11.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0.11'
40
+ version: 0.11.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colorize
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.8'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '0.8'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +168,7 @@ files:
168
168
  - lib/rake_terraform/tasks/validate.rb
169
169
  - lib/rake_terraform/version.rb
170
170
  - rake_terraform.gemspec
171
- homepage: https://github.com/tobyclemson/rake_terraform
171
+ homepage: https://github.com/infrablocks/rake_terraform
172
172
  licenses:
173
173
  - MIT
174
174
  metadata: {}