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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16b3531ed07d2d376da3c7416bb0cec97c631d917675f7266affd5daff425f67
4
- data.tar.gz: 2f121991cb086f9317b1a1b44e4c2360a31cd9438525daa68ff405eebeac7dbf
3
+ metadata.gz: 98aacdf30dd060e5fbd707bbcfd10de54c81d4c0a3f38787cdf1a934e4c256a6
4
+ data.tar.gz: 42ede8ef55c65d1c4e63273d410851867f029fa6e97a9c5db78e405615b070a3
5
5
  SHA512:
6
- metadata.gz: 4de641d74e43a15d1666e1d8093dd32e54d60a0e0e41df61c120f7388e1472d125e8fff8a0132465aef082eed367ddcf1d7b89b7112673532fceccdfea3aa566
7
- data.tar.gz: 670a6593a0e5696d52b6507fa564834dbd1beac4e72b52e8edc1e5f43f033795ee372fd6c0d0ca6534662af2c29cb06f8242c3e0091091eae90876e1b55a68cd
6
+ metadata.gz: 4c559b20007288bea412bd4b74d2446a6825a854051c63948c8dca9e6dbe60e9d7b9b2ee9eb5e53359c16088bcd4be6c2456b0317e6e1c19f8149cead26ec0cd
7
+ data.tar.gz: 6b5ec94334336249663b4132973be8cdf0d1ed161b376b697efb3bcc9f04cf29bee1298ea5a6c9cc9fbab0b7fe27987dad8fcd91aa8608c37462c8c4ed941b28
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.46.0)
4
+ ruby-terraform (0.47.0.pre.pre.1)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
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::Apply.new.execute(
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
 
@@ -61,6 +61,10 @@ module RubyTerraform
61
61
  Commands::Output.new.execute(opts)
62
62
  end
63
63
 
64
+ def show(opts = {})
65
+ Commands::Show.new.execute(opts)
66
+ end
67
+
64
68
  def workspace(opts = {})
65
69
  Commands::Workspace.new.execute(opts)
66
70
  end
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.46.0"
2
+ VERSION = "0.47.0-pre.1"
3
3
  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: 0.46.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-07 00:00:00.000000000 Z
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: '0'
162
+ version: 1.3.1
163
163
  requirements: []
164
164
  rubygems_version: 3.0.3
165
165
  signing_key: