rake_terraform 1.1.0 → 1.2.0.pre.1

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: 7655f0574d75e8907f1f582d73d437491a807186e4fc6b5d4c3b21fccbdbd23c
4
- data.tar.gz: 0e8fe7e14fd14b65abaf2bb1b3ad183090954e32d18db90cc1d3612280c078c0
3
+ metadata.gz: cd6d514fe17e562cacf7350920c766cf7ca83c7527f56a2dce0eeda844cb99ed
4
+ data.tar.gz: c6fa1690a75575ce0ffe5fb740b2e35b7bce4c0c71cbc5a13b1e4e23141f4aa5
5
5
  SHA512:
6
- metadata.gz: a5e104c1cb82e9f04a23a048c865bf4cc13e3affdc7cda8796046153eb3cf8f900411f596f054512ae9b5d3c9048aea2f1c79141f7a32be810b16591baef0852
7
- data.tar.gz: 913577ee28c798e2442de6ebf641b2d6d4e85aab1d8021ca5392fd6066b3c297717157e09a4d3d04574e16adb7c42204e77b84ba07180ff366bad7dc4caca0e1
6
+ metadata.gz: b5653905bd5b05a83e36ff435d0ab53980f6f107d8ebf0f5497c68769dd13a4ea007029fd8a0a8a8b62cece31c115159af76756c9b33dd0d472f7dc3c43aa543
7
+ data.tar.gz: b6289ebba5d7793cddd1a9c0f563b32972a071413576eca977e79be7fd053d3d0d830014b37b57a160edf2ff04024ecbb6ca555ccd49ef9d856c71a7dda0eae3
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_terraform (1.1.0)
4
+ rake_terraform (1.2.0.pre.1)
5
5
  colored2 (~> 3.1)
6
- rake_dependencies (>= 1.8)
7
- rake_factory (>= 0.15)
6
+ rake_dependencies (~> 2, < 3)
7
+ rake_factory (>= 0.23, < 1)
8
8
  ruby-terraform (~> 0.48)
9
9
 
10
10
  GEM
@@ -31,13 +31,13 @@ GEM
31
31
  minitest (5.14.0)
32
32
  open4 (1.3.4)
33
33
  rake (13.0.1)
34
- rake_dependencies (1.10.0)
34
+ rake_dependencies (2.1.0)
35
35
  hamster (~> 3.0)
36
36
  minitar (~> 0.9)
37
- rake_factory (>= 0.11)
38
- rubyzip (~> 2.0)
39
- rake_factory (0.15.0)
40
- activesupport (~> 5.2)
37
+ rake_factory (~> 0.23)
38
+ rubyzip (>= 1.3)
39
+ rake_factory (0.23.0)
40
+ activesupport (>= 4)
41
41
  rake (~> 13.0)
42
42
  rspec (3.9.0)
43
43
  rspec-core (~> 3.9.0)
@@ -54,7 +54,7 @@ GEM
54
54
  rspec-support (3.9.2)
55
55
  ruby-terraform (0.48.0)
56
56
  lino (~> 1.1)
57
- rubyzip (2.0.0)
57
+ rubyzip (2.2.0)
58
58
  thread_safe (0.3.6)
59
59
  tzinfo (1.2.6)
60
60
  thread_safe (~> 0.1)
@@ -11,7 +11,7 @@ module RakeTerraform
11
11
 
12
12
  parameter :backend_config
13
13
 
14
- parameter :vars
14
+ parameter :vars, default: {}
15
15
  parameter :var_file
16
16
  parameter :state_file
17
17
 
@@ -44,31 +44,41 @@ module RakeTerraform
44
44
  parameter :output_argument_names
45
45
 
46
46
  task Tasks::Validate,
47
- name: ->(ts) { ts.validate_task_name },
48
- argument_names: ->(ts) {
47
+ name: RakeFactory::DynamicValue.new { |ts|
48
+ ts.validate_task_name
49
+ },
50
+ argument_names: RakeFactory::DynamicValue.new { |ts|
49
51
  ts.validate_argument_names || ts.argument_names || []
50
52
  }
51
53
  task Tasks::Plan, {
52
- name: ->(ts) { ts.plan_task_name },
53
- argument_names: ->(ts) {
54
+ name: RakeFactory::DynamicValue.new { |ts|
55
+ ts.plan_task_name
56
+ },
57
+ argument_names: RakeFactory::DynamicValue.new { |ts|
54
58
  ts.plan_argument_names || ts.argument_names || []
55
59
  }
56
60
  }
57
61
  task Tasks::Provision, {
58
- name: ->(ts) { ts.provision_task_name },
59
- argument_names: ->(ts) {
62
+ name: RakeFactory::DynamicValue.new { |ts|
63
+ ts.provision_task_name
64
+ },
65
+ argument_names: RakeFactory::DynamicValue.new { |ts|
60
66
  ts.provision_argument_names || ts.argument_names || []
61
67
  }
62
68
  }
63
69
  task Tasks::Destroy, {
64
- name: ->(ts) { ts.destroy_task_name },
65
- argument_names: ->(ts) {
70
+ name: RakeFactory::DynamicValue.new { |ts|
71
+ ts.destroy_task_name
72
+ },
73
+ argument_names: RakeFactory::DynamicValue.new { |ts|
66
74
  ts.destroy_argument_names || ts.argument_names || []
67
75
  }
68
76
  }
69
77
  task Tasks::Output, {
70
- name: ->(ts) { ts.output_task_name },
71
- argument_names: ->(ts) {
78
+ name: RakeFactory::DynamicValue.new { |ts|
79
+ ts.output_task_name
80
+ },
81
+ argument_names: RakeFactory::DynamicValue.new { |ts|
72
82
  ts.output_argument_names || ts.argument_names || []
73
83
  }
74
84
  }
@@ -7,10 +7,13 @@ module RakeTerraform
7
7
  module Tasks
8
8
  class Destroy < RakeFactory::Task
9
9
  default_name :destroy
10
- default_prerequisites ->(t) { [t.ensure_task_name] }
11
- default_description ->(t) {
10
+ default_prerequisites RakeFactory::DynamicValue.new { |t|
11
+ [t.ensure_task_name]
12
+ }
13
+ default_description RakeFactory::DynamicValue.new { |t|
12
14
  "Destroy #{t.configuration_name} using terraform"
13
15
  }
16
+
14
17
  parameter :configuration_name, :required => true
15
18
  parameter :source_directory, :required => true
16
19
  parameter :work_directory, :required => true
@@ -7,8 +7,10 @@ module RakeTerraform
7
7
  module Tasks
8
8
  class Output < RakeFactory::Task
9
9
  default_name :output
10
- default_prerequisites ->(t) { [t.ensure_task_name] }
11
- default_description ->(t) {
10
+ default_prerequisites RakeFactory::DynamicValue.new { |t|
11
+ [t.ensure_task_name]
12
+ }
13
+ default_description RakeFactory::DynamicValue.new { |t|
12
14
  "Output #{t.configuration_name} using terraform"
13
15
  }
14
16
 
@@ -7,8 +7,10 @@ module RakeTerraform
7
7
  module Tasks
8
8
  class Plan < RakeFactory::Task
9
9
  default_name :plan
10
- default_prerequisites ->(t) { [t.ensure_task_name] }
11
- default_description ->(t) {
10
+ default_prerequisites RakeFactory::DynamicValue.new { |t|
11
+ [t.ensure_task_name]
12
+ }
13
+ default_description RakeFactory::DynamicValue.new { |t|
12
14
  "Plan #{t.configuration_name} using terraform"
13
15
  }
14
16
 
@@ -7,8 +7,10 @@ module RakeTerraform
7
7
  module Tasks
8
8
  class Provision < RakeFactory::Task
9
9
  default_name :provision
10
- default_prerequisites ->(t) { [t.ensure_task_name] }
11
- default_description ->(t) {
10
+ default_prerequisites RakeFactory::DynamicValue.new { |t|
11
+ [t.ensure_task_name]
12
+ }
13
+ default_description RakeFactory::DynamicValue.new { |t|
12
14
  "Provision #{t.configuration_name} using terraform"
13
15
  }
14
16
 
@@ -7,8 +7,10 @@ module RakeTerraform
7
7
  module Tasks
8
8
  class Validate < RakeFactory::Task
9
9
  default_name :validate
10
- default_prerequisites ->(t) { [t.ensure_task_name] }
11
- default_description ->(t) {
10
+ default_prerequisites RakeFactory::DynamicValue.new { |t|
11
+ [t.ensure_task_name]
12
+ }
13
+ default_description RakeFactory::DynamicValue.new { |t|
12
14
  "Validate #{t.configuration_name} using terraform"
13
15
  }
14
16
 
@@ -1,3 +1,3 @@
1
1
  module RakeTerraform
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0.pre.1"
3
3
  end
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = '>= 2.6'
25
25
 
26
- spec.add_dependency 'rake_dependencies', '>= 1.8'
27
- spec.add_dependency 'rake_factory', '>= 0.15'
26
+ spec.add_dependency 'rake_dependencies', '~> 2', '< 3'
27
+ spec.add_dependency 'rake_factory', '>= 0.23', '< 1'
28
28
  spec.add_dependency 'ruby-terraform', '~> 0.48'
29
29
  spec.add_dependency 'colored2', '~> 3.1'
30
30
 
metadata CHANGED
@@ -1,43 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-21 00:00:00.000000000 Z
11
+ date: 2020-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake_dependencies
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '1.8'
22
+ version: '3'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: '1.8'
29
+ version: '2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake_factory
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: '0.15'
39
+ version: '0.23'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '1'
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
37
46
  requirements:
38
47
  - - ">="
39
48
  - !ruby/object:Gem::Version
40
- version: '0.15'
49
+ version: '0.23'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '1'
41
53
  - !ruby/object:Gem::Dependency
42
54
  name: ruby-terraform
43
55
  requirement: !ruby/object:Gem::Requirement
@@ -218,9 +230,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
230
  version: '2.6'
219
231
  required_rubygems_version: !ruby/object:Gem::Requirement
220
232
  requirements:
221
- - - ">="
233
+ - - ">"
222
234
  - !ruby/object:Gem::Version
223
- version: '0'
235
+ version: 1.3.1
224
236
  requirements: []
225
237
  rubygems_version: 3.0.1
226
238
  signing_key: