Sha256: 7ebdc3c0b271f33e7f0373511a531d7c24da0baaf24edd9fd8e6d8cf01a9bcd9
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module Overlay VALID_OPTIONS_KEYS = [ :site, :endpoint, :repo, :user, :auth, :repositories, :hostname, :host_port, :relative_root_url ].freeze class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor *VALID_OPTIONS_KEYS def initialize @site = 'https://github.com' @endpoint = 'https://api.github.com' @repositories = Set.new end end GithubRepo = Struct.new(:user, :repo, :branch, :root_path) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
overlay-0.0.4 | lib/overlay/configuration.rb |