terrafying 1.3.2 → 1.3.3

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
- SHA256:
3
- metadata.gz: 3bce26f98c50cfb67e087ff8eacccdc43f4fa47b12105ec459d781f778a5f328
4
- data.tar.gz: 338d737addacef56040e3286a23775d507f4d5660f9911c7c4390a83546338aa
2
+ SHA1:
3
+ metadata.gz: 908b4d5b97e8cc2fba65f7a48e42db4f99a9f3da
4
+ data.tar.gz: 466a5c6ebf10ea443728fc6b34ac64c94b31b71b
5
5
  SHA512:
6
- metadata.gz: d156daf15adae2068b12029ef7117aa979f55bdac2be6ad3e790edbb37ee8329c9fa1fbdd5f8f136854ba8a61d6897f9bb0ceaf5f3b1d7be865eea698e25edb9
7
- data.tar.gz: ef52a318137ea444c23792b0d7850d7b46dac31f7b119075cbffefc2e5aea541f10b32c8104248b5b6ce0da9c3b7ef346039bf3c42870840408e3439ee81c258
6
+ metadata.gz: 03361ad93172d6e21ccfdc208654c780d16ca0b052895237c3316acd255c16ecacae844890b15deb7bdc9cc2a39fe04fa910600587c7fed2ea1cb67f0ee27e36
7
+ data.tar.gz: 2374c5f836fc6ae5e96d89a287c3aba69499694593f2a5603b844e187335f8a83415ca1ce4e66e11fe1437a0b0b621bee6eabd34e148b64528152ebd54a54489
@@ -57,6 +57,16 @@ module Terrafying
57
57
  exit_code
58
58
  end
59
59
 
60
+ def validate
61
+ exit_code = 1
62
+ with_config do
63
+ with_state(mode: :read) do
64
+ exit_code = exec_with_optional_target 'validate'
65
+ end
66
+ end
67
+ exit_code
68
+ end
69
+
60
70
  def apply
61
71
  exit_code = 1
62
72
  with_config do
@@ -26,6 +26,11 @@ module Terrafying
26
26
  exit Config.new(path, options).graph
27
27
  end
28
28
 
29
+ desc "validate PATH", "Validate the generated Terraform"
30
+ def validate(path)
31
+ exit Config.new(path, options).validate
32
+ end
33
+
29
34
  desc "apply PATH", "Apply changes to resources"
30
35
  option :force, :aliases => ['f'], :type => :boolean, :desc => "Forcefully remove any pending locks"
31
36
  def apply(path)
@@ -1,4 +1,4 @@
1
1
  module Terrafying
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3" # will be inserted by Drone
3
3
  CLI_VERSION = "0.11.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terrafying
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - uSwitch Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.7.6
181
+ rubygems_version: 2.4.5
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: No.