'use strict'; import { RemoteProvider, RemoteProviderFactory } from '../remotes/factory'; export type GitRemoteType = 'fetch' | 'push'; export class GitRemote { provider?: RemoteProvider; constructor(public readonly repoPath: string, public readonly name: string, public readonly url: string, public readonly domain: string, public readonly path: string, public readonly types: GitRemoteType[]) { this.provider = RemoteProviderFactory.getRemoteProvider(this.domain, this.path); } }