terrafying 1.7.1 → 1.7.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: 92c02ce384d73f897b5bffb5285040ca3c0f23dbbb84a2fbad926763da1dfbac
4
- data.tar.gz: 1a13e11a4350fe737da5b6a71fc2df21e7cd4aa7e48893302fef1c439769d775
3
+ metadata.gz: 6ecc26605ed318c6f2556fc9f7fcf9f32d297a433ee33b591f3c381aa281f329
4
+ data.tar.gz: 17a9b780067edc702efbbde4d684093aa6c4bd26b5b5689a74c3a6f54f5dca9e
5
5
  SHA512:
6
- metadata.gz: bb33a27195bab49b0744ec3a42f3ef77033caacfc87d14bead616b9688b1b5ef7ba789db611d56cf1e2ab67a5295643d76f506e86201dcdb3d77d57f95a01db8
7
- data.tar.gz: cdb2851fd053377305109dfcfb964d67c4ac75b4e12633d947091c923dbc633c0222260ae796821564672ea99a2e8f24ea1cd9b7af3f4712133f1427949ef576
6
+ metadata.gz: 81e8df58a1fb53f0cb08e6e156430edbd06d86a78d96a65090542a2b762958a391bf1e5694d15d9951ef18a65dd717a91dca770ae5fa937144eee98d0dbb83c7
7
+ data.tar.gz: 75523ba860d3d064465e7af424de2452e3ab2928d7bd6fe9570967eba78f1c5b541f366d662cbafe56c4b70f4eb81b33ce693e8acecb60e8022ae0eeb649f0fb
@@ -123,6 +123,15 @@ module Terrafying
123
123
  @providers.key?(key) && spec != @providers[key][name.to_s]
124
124
  end
125
125
 
126
+ def local(name, value)
127
+ @output["locals"] ||= {}
128
+
129
+ raise "Local already exists #{name.to_s}" if @output["locals"].has_key? name.to_s
130
+
131
+ @output["locals"][name.to_s] = value
132
+ Ref.new(kind: :local, name: name)
133
+ end
134
+
126
135
  def var(name, spec)
127
136
  @output["variable"] ||= {}
128
137
 
@@ -1,4 +1,4 @@
1
1
  module Terrafying
2
- VERSION = "1.7.1" # will be inserted by Drone
2
+ VERSION = "1.7.2" # will be inserted by Drone
3
3
  CLI_VERSION = "0.11.7"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terrafying
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - uSwitch Limited