module SecretServer::Configuration
Helpers for working with the Secret Server configuration
Attributes
key[RW]
path[RW]
rule[RW]
url[RW]
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/secret_server/configuration.rb, line 6 def configure yield self end
env_configure()
click to toggle source
# File lib/secret_server/configuration.rb, line 10 def env_configure configure do |config| config.path = ENV['SDK_CLIENT_PATH'] || nil config.url = ENV['SECRET_SERVER_URL'] || nil config.rule = ENV['SDK_CLIENT_RULE'] || nil config.key = ENV['SDK_CLIENT_KEY'] || nil end end
tss()
click to toggle source
# File lib/secret_server/configuration.rb, line 27 def tss return @tss if defined? @tss @tss = begin bin = File.join(path, 'tss.exe') bin = File.join(path, 'tss') unless File.exist? bin bin end end
valid_path?()
click to toggle source
# File lib/secret_server/configuration.rb, line 19 def valid_path? File.exist? tss end
valid_url?()
click to toggle source
# File lib/secret_server/configuration.rb, line 23 def valid_url? !url.nil? end