// Dial will try to figure out what kind version control system that the
// package is using and initialize the PkgProxy accordingly.
// TODO: invoke this function inside of Sync
Dial will try to figure out what kind version control system that the
package is using and initialize the PkgProxy accordingly.
TODO: invoke this function inside of Sync
// Dial will try to figure out what kind version control system that the // package is using and initialize the PkgProxy accordingly . // TODO : invoke this function inside of Sync
func (this *PakPkg) Dial() error {
	for _, engine := range PkgProxyList {
		tracking, err := engine.IsTracking(this.Name)
		if err != nil {
			return err
		}
		if tracking {
			this.PkgProxy = engine.NewVCS(this.Name, this.Remote, this.Branch, this.PakName)
			return nil
		}
	}
	return fmt.Errorf("Package %s: Can't Find Out Type of Versino Control System.", this.Name)
}
func ( this * PakPkg ) Dial ( ) error { for _ , engine := range PkgProxyList { tracking , err := engine . IsTracking ( this . Name ) if err != nil { return err } if tracking { this . PkgProxy = engine . NewVCS ( this . Name , this . Remote , this . Branch , this . PakName ) return nil } } return fmt . Errorf ( " " , this . Name ) }
Dial will try to figure out what kind version control system that the
package is using and initialize the PkgProxy accordingly.
Dial will try to figure out what kind version control system that the package is using and initialize the PkgProxy accordingly .