ruby-terraform 0.46.0 → 0.47.0.pre.pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/lib/ruby_terraform.rb +4 -0
- data/lib/ruby_terraform/commands/show.rb +2 -0
- data/lib/ruby_terraform/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98aacdf30dd060e5fbd707bbcfd10de54c81d4c0a3f38787cdf1a934e4c256a6
|
|
4
|
+
data.tar.gz: 42ede8ef55c65d1c4e63273d410851867f029fa6e97a9c5db78e405615b070a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c559b20007288bea412bd4b74d2446a6825a854051c63948c8dca9e6dbe60e9d7b9b2ee9eb5e53359c16088bcd4be6c2456b0317e6e1c19f8149cead26ec0cd
|
|
7
|
+
data.tar.gz: 6b5ec94334336249663b4132973be8cdf0d1ed161b376b697efb3bcc9f04cf29bee1298ea5a6c9cc9fbab0b7fe27987dad8fcd91aa8608c37462c8c4ed941b28
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -202,7 +202,7 @@ file. It can be called in the following ways:
|
|
|
202
202
|
```ruby
|
|
203
203
|
RubyTerraform.show(
|
|
204
204
|
path: 'infra/networking')
|
|
205
|
-
RubyTerraform::Commands::
|
|
205
|
+
RubyTerraform::Commands::Show.new.execute(
|
|
206
206
|
path: 'infra/networking')
|
|
207
207
|
```
|
|
208
208
|
|
|
@@ -212,7 +212,8 @@ The show command supports the following options passed as keyword arguments:
|
|
|
212
212
|
defaults to `false`.
|
|
213
213
|
* `module_depth`: the depth of modules to show in the output; defaults to
|
|
214
214
|
showing all modules.
|
|
215
|
-
|
|
215
|
+
* `json`: whether or not the output from the command should be in json format;
|
|
216
|
+
defaults to `false`.
|
|
216
217
|
|
|
217
218
|
### RubyTerraform::Commands::Destroy
|
|
218
219
|
|
data/lib/ruby_terraform.rb
CHANGED
|
@@ -8,6 +8,7 @@ module RubyTerraform
|
|
|
8
8
|
class Show < Base
|
|
9
9
|
def configure_command(builder, opts)
|
|
10
10
|
path = opts[:path] || opts[:directory]
|
|
11
|
+
json_format = opts[:json]
|
|
11
12
|
no_color = opts[:no_color]
|
|
12
13
|
module_depth = opts[:module_depth]
|
|
13
14
|
|
|
@@ -15,6 +16,7 @@ module RubyTerraform
|
|
|
15
16
|
.with_subcommand('show') do |sub|
|
|
16
17
|
sub = sub.with_option('-module-depth', module_depth) if module_depth
|
|
17
18
|
sub = sub.with_flag('-no-color') if no_color
|
|
19
|
+
sub = sub.with_flag('-json') if json_format
|
|
18
20
|
sub
|
|
19
21
|
end
|
|
20
22
|
.with_argument(path)
|
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: 0.
|
|
4
|
+
version: 0.47.0.pre.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: 2019-11-
|
|
11
|
+
date: 2019-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lino
|
|
@@ -157,9 +157,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
157
157
|
version: 2.4.7
|
|
158
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
requirements:
|
|
160
|
-
- - "
|
|
160
|
+
- - ">"
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
|
-
version:
|
|
162
|
+
version: 1.3.1
|
|
163
163
|
requirements: []
|
|
164
164
|
rubygems_version: 3.0.3
|
|
165
165
|
signing_key:
|