Sha256: c2d3bc2dc2713ea9719f452fcbf955bebe9585521e967c5353e44c1569d9cb9a

Contents?: true

Size: 632 Bytes

Versions: 2

Compression:

Stored size: 632 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_source_path, :root_dest_path)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
overlay-0.0.6 lib/overlay/configuration.rb
overlay-0.0.5 lib/overlay/configuration.rb