class PrivateGemServer::Sources
Attributes
keys[R]
temp_path[R]
Public Class Methods
new(config, temp_path)
click to toggle source
# File lib/private_gem_server/sources.rb, line 10 def initialize(config, temp_path) @keys = config['keys'] || {} @temp_path = Pathname(temp_path).tap(&:mkpath).realpath merge! (config['gems'] || {}).map { |k, v| [k, Source.create(k, v, self)] }.to_h end