Exemplo n.º 1
0
        protected override void RunTool()
        {
            var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Tools);

            if (_useToken)
            {
                tool.Create(Token, Owner, Repository, Settings);
            }
            else
            {
                tool.Create(UserName, Password, Owner, Repository, Settings);
            }
        }
Exemplo n.º 2
0
        public static void GitReleaseManagerCreate(this ICakeContext context, string token, string owner, string repository, GitReleaseManagerCreateSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var creator = new GitReleaseManagerCreator(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            creator.Create(token, owner, repository, settings);
        }
Exemplo n.º 3
0
        public static void GitReleaseManagerCreate(this ICakeContext context, string userName, string password, string owner, string repository, GitReleaseManagerCreateSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber);
            var creator  = new GitReleaseManagerCreator(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver);

            creator.Create(userName, password, owner, repository, settings);
        }
        protected override void RunTool()
        {
            var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Globber, Resolver);

            tool.Create(UserName, Password, Owner, Repository, Settings);
        }
Exemplo n.º 5
0
        public void Create()
        {
            var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Globber, GitReleaseManagerToolResolver);

            tool.Create(UserName, Password, Owner, Repository, Settings);
        }