lib/chambermaid/parameter_store.rb in chambermaid-0.2.0 vs lib/chambermaid/parameter_store.rb in chambermaid-0.3.0

- old
+ new

@@ -13,10 +13,14 @@ def reload! clear_params! fetch_ssm_params! end + def loaded? + !@params_list.empty? + end + def self.load!(path:) store = new(path: path) store.load! store end @@ -27,16 +31,10 @@ }.to_h end alias :to_h :params - def to_env - params.inject("") do |env_str, param| - env_str + "#{param[0]}=#{param[1]}\n" - end - end - private def client @client ||= Aws::SSM::Client.new end @@ -61,9 +59,9 @@ ) end def clear_params! @params = nil - @params_list = nil + @params_list = [] end end end