class GitDuplicator::ServiceRepository
Abstract class to use when defining new Git service provider
Attributes
owner[RW]
Public Class Methods
new(name, owner, working_directory = nil)
click to toggle source
Initializer @param [String] name name of the repository @param [String] owner owner of the repository @param [String] working_directory working directory of the repository
Calls superclass method
GitDuplicator::Repository::new
# File lib/git_duplicator/repository/service_repository.rb, line 10 def initialize(name, owner, working_directory = nil) self.owner = owner super(name, url, working_directory) end
Public Instance Methods
create()
click to toggle source
Create the repositroy
# File lib/git_duplicator/repository/service_repository.rb, line 21 def create fail NotImplementedError end
delete()
click to toggle source
Delete the repositroy
# File lib/git_duplicator/repository/service_repository.rb, line 26 def delete fail NotImplementedError end
url()
click to toggle source
URL of the repositroy
# File lib/git_duplicator/repository/service_repository.rb, line 16 def url fail NotImplementedError end