ruby-terraform 0.8.0 → 0.9.0

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
  SHA1:
3
- metadata.gz: dfb6efdd6ed625fd883c7766286c773998b311fc
4
- data.tar.gz: 347e952ddabd763e7123f0ba3c97339f3b50a5ec
3
+ metadata.gz: 486a134fa4b6091b4538ff6e7ce3418f4d836f94
4
+ data.tar.gz: 9a9299c49ad4aef6c864856c729bff9e3b06d358
5
5
  SHA512:
6
- metadata.gz: 7301719aafb260f3e1ef2ce397749d77132b5069d0ba759e4b792a6f6b50081aaa176d313c4e9abd30cfd3f2d0729aa11de2bade0c83f587588345e9286aab9a
7
- data.tar.gz: 566f94645a0a6e292de8b886269e57b442c43578bf08c78f3e57852c19dc22da4dc07e98da3004280300195f117789c6bfdfd360c7cc72766bd203b86022cc01
6
+ metadata.gz: df445931af41a83ead9fc0a9a89a450988242414995d49c0014825f62eebdc20971cce7cba79f170c747ff70ce472589c7b8ce128040c8caec55873075fda58a
7
+ data.tar.gz: 06f3bc3db045c30287c9e7751cac61dd0a955b410a9e145e3a5d34cfc0075c18fbe398c892cc9066818c9b086696dd8a3cd2e116fb87a71461c11e5e8b35ed8f
@@ -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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (0.8.0)
4
+ ruby-terraform (0.9.0)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
@@ -42,4 +42,4 @@ DEPENDENCIES
42
42
  ruby-terraform!
43
43
 
44
44
  BUNDLED WITH
45
- 1.14.5
45
+ 1.15.4
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 'ruby_terraform'
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 ruby_terraform
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[:source]
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
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
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.8.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