ruby-terraform 0.8.0 → 0.9.0
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/CHANGELOG.md +12 -0
- data/Gemfile.lock +2 -2
- data/README.md +4 -2
- data/lib/ruby_terraform/commands/apply.rb +2 -0
- data/lib/ruby_terraform/commands/init.rb +2 -2
- data/lib/ruby_terraform/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 486a134fa4b6091b4538ff6e7ce3418f4d836f94
|
4
|
+
data.tar.gz: 9a9299c49ad4aef6c864856c729bff9e3b06d358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df445931af41a83ead9fc0a9a89a450988242414995d49c0014825f62eebdc20971cce7cba79f170c747ff70ce472589c7b8ce128040c8caec55873075fda58a
|
7
|
+
data.tar.gz: 06f3bc3db045c30287c9e7751cac61dd0a955b410a9e145e3a5d34cfc0075c18fbe398c892cc9066818c9b086696dd8a3cd2e116fb87a71461c11e5e8b35ed8f
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
## 0.9.0 (September 3rd, 2017)
|
2
|
+
|
3
|
+
BACKWARDS INCOMPATIBILITIES / NOTES:
|
4
|
+
|
5
|
+
* Due to backwards incompatible changes in terraform 0.10, this release will
|
6
|
+
only work with terraform >= 0.10.
|
7
|
+
|
8
|
+
IMPROVEMENTS:
|
9
|
+
|
10
|
+
* The init command now uses -from-module to specify the source module
|
11
|
+
* The apply command now supports -auto-approve in preparation for an upcoming
|
12
|
+
terraform release that will set this flag to false by default.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ a Ruby program or Rakefile.
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
gem '
|
11
|
+
gem 'ruby-terraform'
|
12
12
|
```
|
13
13
|
|
14
14
|
And then execute:
|
@@ -17,7 +17,7 @@ And then execute:
|
|
17
17
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
|
-
$ gem install
|
20
|
+
$ gem install ruby-terraform
|
21
21
|
|
22
22
|
|
23
23
|
## Usage
|
@@ -126,6 +126,7 @@ RubyTerraform::Commands::Apply.new.execute(
|
|
126
126
|
The apply command supports the following options passed as keyword arguments:
|
127
127
|
* `directory`: the directory containing terraform configuration; required.
|
128
128
|
* `vars`: a map of vars to be passed in to the terraform configuration.
|
129
|
+
* `var_file`: a file holding list of variables with their values (in terraform format) to be passed to terraform
|
129
130
|
* `state`: the path to the state file in which to store state; defaults to
|
130
131
|
terraform.tfstate in the working directory or the remote state if configured.
|
131
132
|
* `backup`: the path to the backup file in which to store the state backup.
|
@@ -156,6 +157,7 @@ RubyTerraform::Commands::Destroy.new.execute(
|
|
156
157
|
The destroy command supports the following options passed as keyword arguments:
|
157
158
|
* `directory`: the directory containing terraform configuration; required.
|
158
159
|
* `vars`: a map of vars to be passed in to the terraform configuration.
|
160
|
+
* `var_file`: a file holding list of variables with their values (in terraform format) to be passed to terraform
|
159
161
|
* `state`: the path to the state file containing the current state; defaults to
|
160
162
|
terraform.tfstate in the working directory or the remote state if configured.
|
161
163
|
* `force`: if `true`, the command destroys without prompting the user to confirm
|
@@ -9,6 +9,7 @@ module RubyTerraform
|
|
9
9
|
vars = opts[:vars] || {}
|
10
10
|
var_file = opts[:var_file]
|
11
11
|
state = opts[:state]
|
12
|
+
auto_approve = opts[:auto_approve]
|
12
13
|
no_backup = opts[:no_backup]
|
13
14
|
backup = no_backup ? '-' : opts[:backup]
|
14
15
|
no_color = opts[:no_color]
|
@@ -20,6 +21,7 @@ module RubyTerraform
|
|
20
21
|
end
|
21
22
|
sub = sub.with_option('-var-file', var_file) if var_file
|
22
23
|
sub = sub.with_option('-state', state) if state
|
24
|
+
sub = sub.with_option('-auto-approve', auto_approve) unless auto_approve.nil?
|
23
25
|
sub = sub.with_option('-backup', backup) if backup
|
24
26
|
sub = sub.with_flag('-no-color') if no_color
|
25
27
|
sub
|
@@ -9,13 +9,14 @@ module RubyTerraform
|
|
9
9
|
backend = opts[:backend]
|
10
10
|
get = opts[:get]
|
11
11
|
backend_config = opts[:backend_config] || {}
|
12
|
-
source = opts[:
|
12
|
+
source = opts[:from_module]
|
13
13
|
path = opts[:path]
|
14
14
|
|
15
15
|
builder = builder
|
16
16
|
.with_subcommand('init') do |sub|
|
17
17
|
sub = sub.with_option('-backend', backend) unless backend.nil?
|
18
18
|
sub = sub.with_option('-get', get) unless get.nil?
|
19
|
+
sub = sub.with_option('-from-module', source) if source
|
19
20
|
sub = sub.with_flag('-no-color') if no_color
|
20
21
|
backend_config.each do |key, value|
|
21
22
|
sub = sub.with_option(
|
@@ -26,7 +27,6 @@ module RubyTerraform
|
|
26
27
|
sub
|
27
28
|
end
|
28
29
|
|
29
|
-
builder = builder.with_argument(source) if source
|
30
30
|
builder = builder.with_argument(path) if path
|
31
31
|
|
32
32
|
builder
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- .gitignore
|
92
92
|
- .rspec
|
93
93
|
- .ruby-version
|
94
|
+
- CHANGELOG.md
|
94
95
|
- CODE_OF_CONDUCT.md
|
95
96
|
- Gemfile
|
96
97
|
- Gemfile.lock
|