Exemple #1
0
        public static ICremaHost CreateInstance(string tempPath)
        {
            var path = PathUtility.GetTempPath(tempPath, false);

            DirectoryUtility.Prepare(path);
            SvnCrema.CreateRepository(path);
            //return SvnCrema.CreateInstance(path);
            throw new Exception();
        }
Exemple #2
0
        public static ICremaHost GetInstance(string path)
        {
            if (DirectoryUtility.Exists(path) == false)
            {
                DirectoryUtility.Prepare(path);
                SvnCrema.CreateRepository(path);
            }
            else if (DirectoryUtility.IsEmpty(path) == true)
            {
                SvnCrema.CreateRepository(path);
            }

            //return SvnCrema.CreateInstance(path);
            throw new Exception();
        }