class PairingMatrix::RemoteRepos

Attributes

access_token[R]
authors_regex[R]
repositories[R]
url[R]

Public Class Methods

create_from(authors_regex, config) click to toggle source
# File lib/pairing_matrix/config/remote_repos.rb, line 12
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
new(authors_regex, repos, access_token, url) click to toggle source
# File lib/pairing_matrix/config/remote_repos.rb, line 5
def initialize(authors_regex, repos, access_token, url)
    @url = url
    @repositories = repos
    @authors_regex = authors_regex
    @access_token = access_token
end

Public Instance Methods

absent?() click to toggle source
# File lib/pairing_matrix/config/remote_repos.rb, line 24
def absent?
    @repositories.empty?
end
has_access_token?() click to toggle source
# File lib/pairing_matrix/config/remote_repos.rb, line 20
def has_access_token?
    !@access_token.nil? && !@access_token.empty?
end