ruby-terraform 0.59.0.pre.1 → 0.59.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: 31791b88071aedec456f114396f8066b555ddcaddaa3e9d3d4fa100560a92262
4
- data.tar.gz: 1d2d327bacc5593010b5dd9bc51e7dd44c729b6f614eb92fc415102973cbcb6f
3
+ metadata.gz: b27da13acbc1f55c269e9addc06368628bf0bba82e276f0a95d0d2745879d67f
4
+ data.tar.gz: 391a765f337eb7a8f5c26755dd4231fe3cb14469e88e188f7e8b034b6352b657
5
5
  SHA512:
6
- metadata.gz: 54d68b310141085f68296b7f35cb40d64cfc07398d2679f07e055d07dca8bbbcdde21b611d468a2a0067101b8c39583dc7a5640625ec123ddff50150327e2d91
7
- data.tar.gz: b0c44a9823117cc4365a29d22631bb615e4432eb08e0b0d049322565694440d92830b808236923c159e937f7149436cf6edf705bc9f538e1d469b02d65b709ad
6
+ metadata.gz: bff9589bbad206066254a39c2de4eab57c70160d241b4323b012d36f9790f27d38c59f703c6023e8d3d759d6b1c95ca16dc17b4111ee580388ff76133a1e004e
7
+ data.tar.gz: 56c435100200ae664ea9869880a741b7c116b536f90ed82cb36373cd1187b237bd2ad06ae5d75b95520a2021f3bc37b1cab3717a1de5036d9b33f9d32736f661
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.59.0.pre.1)
4
+ ruby-terraform (0.59.0.pre.2)
5
5
  lino (>= 1.1, < 2)
6
6
 
7
7
  GEM
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::FMT`: executes `terraform fmt`
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::FMT
388
+ ### RubyTerraform::Commands::Format
389
389
 
390
- The FMT command formats the terraform directory specified. It can be called in the following ways:
390
+ The format command formats the terraform directory specified. It can be called in the following ways:
391
391
 
392
392
  ```ruby
393
- RubyTerraform.fmt(
393
+ RubyTerraform.format(
394
394
  directory: 'infra/networking',
395
395
  vars: {
396
396
  region: 'eu-central'
397
397
  })
398
- RubyTerraform::Commands::FMT.new.execute(
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 fmt command supports the following options passed as keyword arguments:
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`.
@@ -0,0 +1,3 @@
1
+ # Enable `require 'ruby-terraform'`, to match the gem name
2
+
3
+ require_relative 'ruby_terraform.rb'
@@ -73,8 +73,8 @@ module RubyTerraform
73
73
  Commands::Import.new.execute(opts)
74
74
  end
75
75
 
76
- def fmt(opts = {})
77
- Commands::FMT.new.execute(opts)
76
+ def format(opts = {})
77
+ Commands::Format.new.execute(opts)
78
78
  end
79
79
  end
80
80
  extend ClassMethods
@@ -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/fmt'
14
+ require_relative 'commands/format'
15
15
 
16
16
  module RubyTerraform
17
17
  module Commands
@@ -5,7 +5,7 @@ require_relative 'base'
5
5
 
6
6
  module RubyTerraform
7
7
  module Commands
8
- class FMT < Base
8
+ class Format < Base
9
9
  def configure_command(builder, opts)
10
10
  directory = opts[:directory]
11
11
  check = opts[:check]
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.59.0.pre.1"
2
+ VERSION = "0.59.0.pre.2"
3
3
  end
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.1
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/fmt.rb
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