ruby-terraform 1.6.0.pre.1 → 1.6.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: ade7989e4320d556292b8ad138c0e42e38628d9e449168e5cc268e577ff48f9d
4
- data.tar.gz: '0465179ec03a7bbb1cd3c2a6225742364fafec63b38acef88bde00947da90d5e'
3
+ metadata.gz: 79453b452518ccf2c617a52e8c3d656002a5badcab65ff43b695896efb14a3b7
4
+ data.tar.gz: aa197b7fcd9d7b70b9994591b2a40df912bd22ab0637a804d79c0ed820d11b60
5
5
  SHA512:
6
- metadata.gz: f4c59962d2ab62e912ed953b07bfbd8098445c5d78f692099ee258000a94dfab4feaebeaf0f3e7c92b1abbc8b41f6dc536baa953f5fb34dfdb30a938e208300a
7
- data.tar.gz: ef55eff9c144e412d23b2429fa3a8de292e74d230b2c31f2d66eaad95957517e3d8a44856f48144c0975e2b2b883468ce3ca0a5edc5bcf23311c706239e76de6
6
+ metadata.gz: f0597645da564079c828ff12a32ddd41324abd8c52086ef83e8fb78d8726ed97fbbca857b4f0355cf48a493dabfea6ab06ccb23849e4123ca7aa8ad1b767bedd
7
+ data.tar.gz: 668bdeb6b8d8d873f2b7c44314081befcb66e1abee7cf45fdf4a4099d2a7fa30c58d051ee3b1f307a6a1d20648bbcf2df820ff14345251b853eb10b454f844e1
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.6.0.pre.1)
4
+ ruby-terraform (1.6.0.pre.2)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.2.3)
11
+ activesupport (7.0.3)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -21,32 +21,13 @@ GEM
21
21
  concurrent-ruby (1.1.10)
22
22
  diff-lcs (1.5.0)
23
23
  docile (1.4.0)
24
- excon (0.92.0)
24
+ excon (0.92.3)
25
25
  faker (2.21.0)
26
26
  i18n (>= 1.8.11, < 2)
27
- faraday (1.10.0)
28
- faraday-em_http (~> 1.0)
29
- faraday-em_synchrony (~> 1.0)
30
- faraday-excon (~> 1.1)
31
- faraday-httpclient (~> 1.0)
32
- faraday-multipart (~> 1.0)
33
- faraday-net_http (~> 1.0)
34
- faraday-net_http_persistent (~> 1.0)
35
- faraday-patron (~> 1.0)
36
- faraday-rack (~> 1.0)
37
- faraday-retry (~> 1.0)
27
+ faraday (2.3.0)
28
+ faraday-net_http (~> 2.0)
38
29
  ruby2_keywords (>= 0.0.4)
39
- faraday-em_http (1.0.0)
40
- faraday-em_synchrony (1.0.0)
41
- faraday-excon (1.1.0)
42
- faraday-httpclient (1.0.1)
43
- faraday-multipart (1.0.3)
44
- multipart-post (>= 1.2, < 3)
45
- faraday-net_http (1.0.1)
46
- faraday-net_http_persistent (1.2.0)
47
- faraday-patron (1.0.0)
48
- faraday-rack (1.0.0)
49
- faraday-retry (1.0.3)
30
+ faraday-net_http (2.0.3)
50
31
  ffi (1.15.5)
51
32
  formatador (1.1.0)
52
33
  gem-release (2.2.2)
@@ -77,15 +58,14 @@ GEM
77
58
  rb-inotify (~> 0.9, >= 0.9.10)
78
59
  lumberjack (1.2.8)
79
60
  method_source (1.0.0)
80
- minitest (5.15.0)
81
- multipart-post (2.1.1)
61
+ minitest (5.16.1)
82
62
  nenv (0.3.0)
83
63
  notiffany (0.1.3)
84
64
  nenv (~> 0.1)
85
65
  shellany (~> 0.0)
86
- octokit (4.22.0)
87
- faraday (>= 0.9)
88
- sawyer (~> 0.8.0, >= 0.5.3)
66
+ octokit (4.25.0)
67
+ faraday (>= 1, < 3)
68
+ sawyer (~> 0.9)
89
69
  open4 (1.3.4)
90
70
  parallel (1.22.1)
91
71
  parser (3.1.2.0)
@@ -93,7 +73,7 @@ GEM
93
73
  pry (0.14.1)
94
74
  coderay (~> 1.1)
95
75
  method_source (~> 1.0)
96
- public_suffix (4.0.6)
76
+ public_suffix (4.0.7)
97
77
  rainbow (3.1.1)
98
78
  rake (13.0.6)
99
79
  rake_circle_ci (0.9.0)
@@ -119,7 +99,7 @@ GEM
119
99
  rb-fsevent (0.11.1)
120
100
  rb-inotify (0.10.1)
121
101
  ffi (~> 1.0)
122
- regexp_parser (2.4.0)
102
+ regexp_parser (2.5.0)
123
103
  rexml (3.2.5)
124
104
  rspec (3.11.0)
125
105
  rspec-core (~> 3.11.0)
@@ -130,11 +110,11 @@ GEM
130
110
  rspec-expectations (3.11.0)
131
111
  diff-lcs (>= 1.2.0, < 2.0)
132
112
  rspec-support (~> 3.11.0)
133
- rspec-mocks (3.11.0)
113
+ rspec-mocks (3.11.1)
134
114
  diff-lcs (>= 1.2.0, < 2.0)
135
115
  rspec-support (~> 3.11.0)
136
116
  rspec-support (3.11.0)
137
- rubocop (1.30.0)
117
+ rubocop (1.31.0)
138
118
  parallel (~> 1.10)
139
119
  parser (>= 3.1.0.0)
140
120
  rainbow (>= 2.2.2, < 4.0)
@@ -147,15 +127,15 @@ GEM
147
127
  parser (>= 3.1.1.0)
148
128
  rubocop-rake (0.6.0)
149
129
  rubocop (~> 1.0)
150
- rubocop-rspec (2.9.0)
130
+ rubocop-rspec (2.11.1)
151
131
  rubocop (~> 1.19)
152
132
  ruby-progressbar (1.11.0)
153
133
  ruby2_keywords (0.0.5)
154
134
  ruby_gpg2 (0.8.0)
155
135
  lino (>= 1.5)
156
- sawyer (0.8.2)
136
+ sawyer (0.9.2)
157
137
  addressable (>= 2.3.5)
158
- faraday (> 0.8, < 2.0)
138
+ faraday (>= 0.17.3, < 3)
159
139
  shellany (0.0.1)
160
140
  simplecov (0.21.2)
161
141
  docile (~> 1.1)
@@ -167,9 +147,9 @@ GEM
167
147
  thor (1.2.1)
168
148
  tzinfo (2.0.4)
169
149
  concurrent-ruby (~> 1.0)
170
- unicode-display_width (2.1.0)
150
+ unicode-display_width (2.2.0)
171
151
  webrick (1.7.0)
172
- yard (0.9.27)
152
+ yard (0.9.28)
173
153
  webrick (~> 1.7.0)
174
154
 
175
155
  PLATFORMS
@@ -195,4 +175,4 @@ DEPENDENCIES
195
175
  yard
196
176
 
197
177
  BUNDLED WITH
198
- 2.3.14
178
+ 2.3.16
@@ -27,9 +27,9 @@ module RubyTerraform
27
27
  # @param [Hash<String, Object>] parameters The parameters used to
28
28
  # invoke the command. See subclass documentation for details of
29
29
  # supported options.
30
- def execute(parameters = {})
30
+ def execute(parameters = {}, invocation_options = {})
31
31
  do_before(parameters)
32
- build_and_execute_command(parameters)
32
+ build_and_execute_command(parameters, invocation_options)
33
33
  do_after(parameters)
34
34
  rescue Open4::SpawnError
35
35
  message = "Failed while running '#{command_name}'."
@@ -41,8 +41,8 @@ module RubyTerraform
41
41
 
42
42
  attr_reader :binary, :logger, :stdin, :stdout, :stderr
43
43
 
44
- def build_and_execute_command(parameters)
45
- command = build_command(parameters)
44
+ def build_and_execute_command(parameters, invocation_options)
45
+ command = build_command(parameters, invocation_options)
46
46
 
47
47
  logger.debug("Running '#{command}'.")
48
48
  command.execute(
@@ -62,11 +62,13 @@ module RubyTerraform
62
62
 
63
63
  private
64
64
 
65
- def build_command(parameters)
65
+ def build_command(parameters, invocation_options)
66
66
  parameters = resolve_parameters(parameters)
67
+ environment = invocation_options[:environment] || {}
67
68
 
68
69
  Lino::CommandLineBuilder
69
70
  .for_command(@binary)
71
+ .with_environment_variables(environment)
70
72
  .with_options_after_subcommands
71
73
  .with_option_separator('=')
72
74
  .with_appliables(@options.resolve(options, parameters))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.6.0.pre.1'
4
+ VERSION = '1.6.0.pre.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0.pre.1
4
+ version: 1.6.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct