Sha256: 0f60ee0fb2a61af5ad8c0c608c7c05f00cec4ba3f8dfdc682186c0290b5dd4ba

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

module GitDuplicator
  # Abstract class to use when defining new Git service provider
  class ServiceRepository < Repository
    attr_accessor :owner

    # Initializer
    # @param [String] name name of the repository
    # @param [String] owner owner of the repository
    def initialize(name, owner)
      self.owner = owner
      super(name, url)
    end

    # URL of the repositroy
    def url
      fail NotImplementedError
    end

    # Create the repositroy
    def create
      fail NotImplementedError
    end

    # Delete the repositroy
    def delete
      fail NotImplementedError
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_duplicator-0.0.1 lib/git_duplicator/repository/service_repository.rb