Sha256: 3603ad974f60cf365b16f085e9a79a9fef0121acbe2dffa805d61a75deba0eb8

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

module Overlay
  VALID_OPTIONS_KEYS = [
    :site,
    :endpoint,
    :repo,
    :user,
    :auth,
    :repositories,
    :hostname,
    :host_port
  ].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(:name, :repo, :branch)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
overlay-0.0.2 lib/overlay/configuration.rb