sambot 0.1.166 → 0.1.167
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 565f07f14e49fd9cd9f3143e44b77711e9d5c9b0
|
4
|
+
data.tar.gz: 0e2a85e057cdf65c104d8465bdcd414635852710
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6148810fe5a730f548ded369bcc79e2bf6998c0225fef828d6b593ef400b8b41b7bef112edee9fc1ea8cc6bccb924dad1ceeb00dd913924ae7304c6303e0953
|
7
|
+
data.tar.gz: a4e336525cf92a5e53edff3beb3872a9b3083eba5687a09860b87480d3a7d66b2c13155f8e6fc5f70c207c6bf68ec895ffdc59595df236a45bd70bcc2df79a76
|
@@ -1,11 +1,11 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'vault'
|
3
3
|
|
4
|
-
config = File.expand_path(File.join(File.dirname(__FILE__), '
|
4
|
+
config = File.expand_path(File.join(File.dirname(__FILE__), '../../.vault.yml'))
|
5
5
|
secrets = YAML.load(File.read(config))
|
6
6
|
secrets.each do |secret|
|
7
7
|
data = secret['contents']
|
8
|
-
data = File.read() if data.start_with?('file::')
|
8
|
+
data = File.read(data.gsub(/file::/, '')) if data.start_with?('file::')
|
9
9
|
Vault.logical.write(secret['path'], value: data)
|
10
10
|
puts "Updated the secret located at #{secret['path']}"
|
11
11
|
end
|
data/lib/sambot/version.rb
CHANGED