lib/lamby/ssm_parameter_store.rb in lamby-0.4.1 vs lib/lamby/ssm_parameter_store.rb in lamby-0.5.0
- old
+ new
@@ -13,9 +13,18 @@
def dotenv(path)
new(path).get!.to_dotenv
end
+ def get!(path)
+ parts = path.from(1).split('/')
+ env = parts.pop
+ path = "/#{parts.join('/')}"
+ new(path).get!.params.detect do |p|
+ p.env == env
+ end.try(:value)
+ end
+
end
def initialize(path, options = {})
@path = path
@params = []