Sha256: 1c9e73c4dcbe79742d0820ce4343cfe9f3f62acddcd90647b7cdc48fbca2c4cf
Contents?: true
Size: 1.8 KB
Versions: 4
Compression:
Stored size: 1.8 KB
Contents
require 'git_reflow/config' module GitReflow class GitServer::Base extend GitHelpers @@connection = nil def initialize(options) site_url = self.class.site_url api_endpoint = self.class.api_endpoint self.class.site_url = site_url self.class.api_endpoint = api_endpoint authenticate end def self.connection raise "#{self.class.to_s}.connection method must be implemented" end def self.user raise "#{self.class.to_s}.user method must be implemented" end def self.api_endpoint raise "#{self.class.to_s}.api_endpoint method must be implemented" end def self.api_endpoint=(api_endpoint, options = {local: false}) raise "#{self.class.to_s}.api_endpoint= method must be implemented" end def self.site_url raise "#{self.class.to_s}.site_url method must be implemented" end def self.site_url=(site_url, options = {local: false}) raise "#{self.class.to_s}.site_url= method must be implemented" end def self.project_only? GitReflow::Config.get("reflow.local-projects", all: true).include? "#{remote_user}/#{remote_repo_name}" end def connection @connection ||= self.class.connection end def authenticate raise "#{self.class.to_s}#authenticate method must be implemented" end def find_open_pull_request(options) raise "#{self.class.to_s}#find_open_pull_request(options) method must be implemented" end def get_build_status sha raise "#{self.class.to_s}#get_build_status(sha) method must be implemented" end def colorized_build_description status raise "#{self.class.to_s}#colorized_build_description(status) method must be implemented" end end end
Version data entries
4 entries across 4 versions & 1 rubygems