uc3-sam-sceptre 0.0.14 → 0.0.16

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: 5f3193fb7558a8368bab004a1de0f1a796ed4e32d085351156f3cd70ebfcbe07
4
- data.tar.gz: b8b715edb6d73f06e6df37d6b212a0c901186e2978f9f2a6c274a64835d2d7c8
3
+ metadata.gz: e34abfdedcb68558d3f3a0ad093f32cd0408f6eb3c154f68afc18f9d885732ee
4
+ data.tar.gz: 5b5f54954042cfe3885a74086a69300551393a88a8a450135cd722ad2181707b
5
5
  SHA512:
6
- metadata.gz: 4d6851380e824b54e93a7c7bc8aa1e45f8c8232d18c83417465ebe40e0dcaf0f1540b9f271b213b3e902bc27df9ef062a8154dcd4ee38ed0696d489f74d66ab1
7
- data.tar.gz: 6bd84257335bbda95609f1ec7bd81548d345b59f1244de49f03d1516fb66ddeae00068931c623c5276755fe9d80c2771d0e75b5defc50ac34e9e9759aac40a9b
6
+ metadata.gz: bb63600d6953502c9c65065dd3d4263c3c2a6cfd9bc62d27593b720d96205f14bc0db246e0b43ab793f6f271a45457ac7b26f4320cf8408264cee26a9afaff7d
7
+ data.tar.gz: 9212170205983875dcf52db9175e03ce27d75b40f75e4df74d054a610a54683b390df097ca1061b20a785ab866eef5276b6996a5df1aeaf27378c43d8c3739a8
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3SamSceptre
4
- VERSION = '0.0.14'
4
+ VERSION = '0.0.16'
5
5
  end
@@ -141,17 +141,15 @@ puts args
141
141
  def _fetch_stack_export(name:)
142
142
  key = name.to_s.downcase.strip
143
143
 
144
- puts "Looking for #{name}"
144
+ puts "Looking for: #{name}, stack prefix: #{@prefix}"
145
145
 
146
- exports = @stack_exports.select { |exp| exp[:exporting_stack_id].include?(@prefix) && exp[:name].downcase.strip == key }
146
+ exp = @stack_exports.select { |exp| exp[:exporting_stack_id].include?(@prefix) && exp[:name].downcase.strip == key }.first
147
147
 
148
- puts exports
149
- puts exports.class.name
150
- puts exports.first
151
- puts exports.first.class.name
152
- puts exports.first[:value]
148
+ puts exp
149
+ puts exp.class.name
150
+ puts exp.first
153
151
 
154
- exports.map(&:value).first
152
+ exp.nil? ? nil : exp.first[:value]
155
153
  end
156
154
  end
157
155
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-sam-sceptre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley