harmony-service 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d572cbd9f4a1fc28a05c1c15c14dc2c811a817a
4
- data.tar.gz: 18ba32d96fbf51eea7d1be447ca2b1dda17ef4a7
3
+ metadata.gz: c789a990273ed57aa0d9c08e07c5ba6843eb378b
4
+ data.tar.gz: c6a22f81d6a72dc7587cb7a58f42bd9c9ee0f210
5
5
  SHA512:
6
- metadata.gz: 880856a13a5a1b48e898a4fa180d21395fa3baf64fa4a8989b2b729d67708a91cf0ce37b81e88e9a936d96733183becd4b5fa8e9ff743301cb0839b1301edf5d
7
- data.tar.gz: a57d162a7992e4863851d58e0b1dff8aa9e3af23042caf80cbc1e50787381d9684750f6cf01a292b08fdbce1aa5ff7a0af8e8547792fc8f6bfe102079741f433
6
+ metadata.gz: ff928f33d09c9c789042dd8ba5587b9c5cf1f474a77ec5b18d32022adb5c03172947816adbb8b067f3da6d5ee7ae102f6a9c00ecd7231f7ec0c0e9209e49ef83
7
+ data.tar.gz: 565db571ab1c46ea7f20484dda6f22737e86375b5d05ed644481fcebc8923c3fe35cbd36dc32e5723513ab4e8ff3665d4d28097ed6eb40d4f0187238d2deb320
@@ -5,12 +5,16 @@ module Harmony
5
5
  module Utils
6
6
  class Secrets
7
7
 
8
- def self.load
9
- env = ENV['HARMONY_ENV']
10
- abort "ENV['HARMONY_ENV'] must be set." unless env
11
-
12
- secrets = Sekrets.settings_for('./config/settings.yml.enc')[env]
13
- secrets.each_pair{|k,v| ENV[k] = v.to_s }
8
+ def self.load
9
+ sekrets_file_path = './config/settings.yml.enc'
10
+ if File.exist?(sekrets_file_path)
11
+ env = ENV['HARMONY_ENV']
12
+ abort "ENV['HARMONY_ENV'] must be set." unless env
13
+
14
+ puts "Reading secrets from #{sekrets_file_path}"
15
+ secrets = Sekrets.settings_for(sekrets_file_path)[env]
16
+ secrets.each_pair{|k,v| ENV[k] = v.to_s }
17
+ end
14
18
  end
15
19
  end
16
20
  end
@@ -1,6 +1,6 @@
1
1
  module Harmony
2
2
  module Service
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harmony-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith