module Psenv

Constants

VERSION

Public Instance Methods

load(*paths) click to toggle source
# File lib/psenv.rb, line 10
def load(*paths)
  paths.unshift(ENV["PARAMETER_STORE_PATH"]) if ENV["PARAMETER_STORE_PATH"]
  Environment.new(*paths.map { |path| retrieve_variables(path) }).apply
end
overload(*paths) click to toggle source
# File lib/psenv.rb, line 15
def overload(*paths)
  paths.unshift(ENV["PARAMETER_STORE_PATH"]) if ENV["PARAMETER_STORE_PATH"]
  Environment.new(*paths.map { |path| retrieve_variables(path) }).apply!
end
retrieve_variables(path) click to toggle source
# File lib/psenv.rb, line 20
def retrieve_variables(path)
  Retriever.new(path).call
end