Skip to content

Commit d14c5a8

Browse files
committed
Fixed EOF issue
1 parent 01facdd commit d14c5a8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/secrets-manager.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
module SecretsManager
99
class SecretNotFound < StandardError; end;
1010

11+
def self.new
12+
Manager.new
13+
end
14+
1115
class Cache
1216
def initialize
1317
@_cache = Concurrent::Map.new
@@ -36,9 +40,10 @@ class Manager
3640
def initialize(client: nil)
3741
@cache = Cache.new
3842
@aws_client = client
43+
end
3944

4045
def secret_env
41-
ENV.fetch('AWS_SECRETS_ENV', 'dev'),
46+
ENV.fetch('AWS_SECRETS_ENV', 'dev')
4247
end
4348

4449
def client
@@ -90,5 +95,6 @@ def parse_value(data)
9095

9196
return value
9297
end
98+
9399
end
94100
end

0 commit comments

Comments
 (0)