Sha256: 3e71b195a0c2e3344dbd1ca3abe16381fbeea314574a9abb8e118c91dd0ddc3c
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
module PairingMatrix class RemoteRepos attr_reader :repositories, :access_token, :url, :authors_regex def initialize(authors_regex, repos, access_token, url) @url = url @repositories = repos @authors_regex = authors_regex @access_token = access_token end def self.create_from(authors_regex, config) repos = config['repositories'] rescue [] access_token = config['access_token'] rescue nil url = config['url'] rescue nil RemoteRepos.new(authors_regex, repos, access_token, url) end def has_access_token? !@access_token.nil? && !@access_token.empty? end def absent? @repositories.empty? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pairing_matrix-3.0.0 | lib/pairing_matrix/config/remote_repos.rb |