Sha256: 9b7df7423b0d3d0d17f37c48772e48bdba4dcb6b9baba6692d76133a9c15583b
Contents?: true
Size: 667 Bytes
Versions: 9
Compression:
Stored size: 667 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 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
9 entries across 9 versions & 1 rubygems