Sha256: 7cf895bcc89f4fd39222f9f9c4aa5196d3253142ff74cc1bfdfc480188f97501
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 Bytes
Contents
module Overlay VALID_OPTIONS_KEYS = [ :site, :endpoint, :repo, :user, :auth, :repositories, :host_name, :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 reset end def reset @site = 'https://github.com' @endpoint = 'https://api.github.com' @repositories = Set.new end end GithubRepo = Struct.new(:user, :repo, :branch, :root_source_path, :root_dest_path) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
overlay-1.1.0 | lib/overlay/configuration.rb |
overlay-1.0.7 | lib/overlay/configuration.rb |
overlay-1.0.6 | lib/overlay/configuration.rb |