public void ReadIni(string filename)
        {
            _filename = filename;
            _ini = IniFileReader.LoadFile(filename);

            if (_ini != null)
            {
                Repo.GetRepository(_ini);
            }
        }
        public Repository GetRepository(Config ini)
        {
            _ini = ini;
            var repository = ini.GetSection("repository");

            if (repository == null)
            {
                throw new ScriptExecException("Missing repository section in INI file");
            }

            Path = repository.Attributes.Where(p => p.AttributeName == "path").Select(p => p.Value).Single();
            Username = repository.Attributes.Where(p => p.AttributeName == "username").Select(p => p.Value).Single();
            Password = repository.Attributes.Where(p => p.AttributeName == "password").Select(p => p.Value).Single();

            return this;
        }