Ejemplo n.º 1
0
        public Collaborators(IGitWrapper wrapper, string teamname, Permission permission = Permission.Push, IEnumerable <string> only = null, IEnumerable <string> not = null)
        {
            this.teamname   = teamname;
            this.permission = permission;
            this.only       = only ?? new List <string>();
            this.not        = not ?? new List <string>();

            this.Wrapper = wrapper;

            var info = $"Checking if {teamname} has {permission.ToString()} on {Config.Github.Org}";

            if (this.only.Any())
            {
                info += $" but only " + string.Join(", ", this.only);
            }
            if (this.not.Any())
            {
                info += $" but not " + string.Join(", ", this.not);
            }

            l(info, 1);
        }
Ejemplo n.º 2
0
		internal BackupManager(IDbService dbService, IGitWrapper gitWrapper)
		{
			this.dbService = dbService;
			this.gitWrapper = gitWrapper;
		}
Ejemplo n.º 3
0
 public Audit(string outputPath = null)
 {
     this.outputPath = outputPath;
     this.wrapper    = new GitWrapper(base.Client);
 }
Ejemplo n.º 4
0
 public TeamMemberships(Audit.AuditDto auditData, Dictionary <string, List <string> > teams)
 {
     this.auditData = auditData;
     this.teams     = teams;
     this.wrapper   = new GitWrapper(Client);
 }