lib/chambermaid/parameter_store.rb in chambermaid-0.1.0 vs lib/chambermaid/parameter_store.rb in chambermaid-0.2.0
- old
+ new
@@ -8,10 +8,15 @@
def load!
fetch_ssm_params!
end
+ def reload!
+ clear_params!
+ fetch_ssm_params!
+ end
+
def self.load!(path:)
store = new(path: path)
store.load!
store
end
@@ -52,8 +57,13 @@
path: @path,
with_decryption: true,
recursive: true,
next_token: next_token
)
+ end
+
+ def clear_params!
+ @params = nil
+ @params_list = nil
end
end
end