ruby-terraform 0.59.0.pre.1 → 0.59.0.pre.2
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 +6 -6
- data/lib/ruby-terraform.rb +3 -0
- data/lib/ruby_terraform.rb +2 -2
- data/lib/ruby_terraform/commands.rb +1 -1
- data/lib/ruby_terraform/commands/{fmt.rb → format.rb} +1 -1
- data/lib/ruby_terraform/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b27da13acbc1f55c269e9addc06368628bf0bba82e276f0a95d0d2745879d67f
|
4
|
+
data.tar.gz: 391a765f337eb7a8f5c26755dd4231fe3cb14469e88e188f7e8b034b6352b657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff9589bbad206066254a39c2de4eab57c70160d241b4323b012d36f9790f27d38c59f703c6023e8d3d759d6b1c95ca16dc17b4111ee580388ff76133a1e004e
|
7
|
+
data.tar.gz: 56c435100200ae664ea9869880a741b7c116b536f90ed82cb36373cd1187b237bd2ad06ae5d75b95520a2021f3bc37b1cab3717a1de5036d9b33f9d32736f661
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -50,7 +50,7 @@ Currently, there is partial support for the following commands:
|
|
50
50
|
* `RubyTerraform::Commands::Refresh`: executes `terraform refresh`
|
51
51
|
* `RubyTerraform::Commands::Import`: executes `terraform import`
|
52
52
|
* `RubyTerraform::Commands::RemoteConfig`: executes `terraform remote config`
|
53
|
-
* `RubyTerraform::Commands::
|
53
|
+
* `RubyTerraform::Commands::Format`: executes `terraform fmt`
|
54
54
|
* `RubyTerraform::Commands::Validate`: executes `terraform validate`
|
55
55
|
* `RubyTerraform::Commands::Workspace`: executes `terraform workspace`
|
56
56
|
|
@@ -385,24 +385,24 @@ arguments:
|
|
385
385
|
* `no_color`: whether or not the output from the command should be in color;
|
386
386
|
defaults to `false`.
|
387
387
|
|
388
|
-
### RubyTerraform::Commands::
|
388
|
+
### RubyTerraform::Commands::Format
|
389
389
|
|
390
|
-
The
|
390
|
+
The format command formats the terraform directory specified. It can be called in the following ways:
|
391
391
|
|
392
392
|
```ruby
|
393
|
-
RubyTerraform.
|
393
|
+
RubyTerraform.format(
|
394
394
|
directory: 'infra/networking',
|
395
395
|
vars: {
|
396
396
|
region: 'eu-central'
|
397
397
|
})
|
398
|
-
RubyTerraform::Commands::
|
398
|
+
RubyTerraform::Commands::Format.new.execute(
|
399
399
|
directory: 'infra/networking',
|
400
400
|
vars: {
|
401
401
|
region: 'eu-central'
|
402
402
|
})
|
403
403
|
```
|
404
404
|
|
405
|
-
The
|
405
|
+
The format command supports the following options passed as keyword arguments:
|
406
406
|
* `directory`: the directory containing terraform configuration to be formatted; required.
|
407
407
|
* `recursive`: Processes files in subdirectories;
|
408
408
|
defaults to `false`.
|
data/lib/ruby_terraform.rb
CHANGED
@@ -11,7 +11,7 @@ require_relative 'commands/remote_config'
|
|
11
11
|
require_relative 'commands/show'
|
12
12
|
require_relative 'commands/workspace'
|
13
13
|
require_relative 'commands/import'
|
14
|
-
require_relative 'commands/
|
14
|
+
require_relative 'commands/format'
|
15
15
|
|
16
16
|
module RubyTerraform
|
17
17
|
module Commands
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-terraform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.59.0.pre.
|
4
|
+
version: 0.59.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -166,13 +166,14 @@ files:
|
|
166
166
|
- config/secrets/github/config.yaml
|
167
167
|
- config/secrets/rubygems/credentials
|
168
168
|
- go
|
169
|
+
- lib/ruby-terraform.rb
|
169
170
|
- lib/ruby_terraform.rb
|
170
171
|
- lib/ruby_terraform/commands.rb
|
171
172
|
- lib/ruby_terraform/commands/apply.rb
|
172
173
|
- lib/ruby_terraform/commands/base.rb
|
173
174
|
- lib/ruby_terraform/commands/clean.rb
|
174
175
|
- lib/ruby_terraform/commands/destroy.rb
|
175
|
-
- lib/ruby_terraform/commands/
|
176
|
+
- lib/ruby_terraform/commands/format.rb
|
176
177
|
- lib/ruby_terraform/commands/get.rb
|
177
178
|
- lib/ruby_terraform/commands/import.rb
|
178
179
|
- lib/ruby_terraform/commands/init.rb
|