Sha256: 741db1812ea43116cb9fcee1b8e410bf07a98eea3e475e8b7c80b24369ac37e1
Contents?: true
Size: 575 Bytes
Versions: 9
Compression:
Stored size: 575 Bytes
Contents
# helps to enable authentication class Vault::Provision::Sys::Auth < Vault::Provision::Prototype def provision! auths = @vault.sys.auths change = [] repo_files.each do |rf| validate_file! rf path = rf[(repo_path.length + 1)..-6].to_sym r_conf = JSON.parse(File.read(rf)) puts " * #{File.basename(rf, '.json')} (#{r_conf['type']})" next if auths[path] @vault.sys.enable_auth(path.to_s, r_conf['type'], r_conf['description']) change << @vault.sys.auths[path] end change end end
Version data entries
9 entries across 9 versions & 1 rubygems