public static void GitReleaseManagerAddAssets(this ICakeContext context, string token, string owner, string repository, string tagName, string assets, GitReleaseManagerAddAssetsSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var assetsAdder = new GitReleaseManagerAssetsAdder(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); assetsAdder.AddAssets(token, owner, repository, tagName, assets, settings); }
public static void GitReleaseManagerAddAssets(this ICakeContext context, string userName, string password, string owner, string repository, string tagName, string assets, GitReleaseManagerAddAssetsSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var resolver = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber); var assetsAdder = new GitReleaseManagerAssetsAdder(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver); assetsAdder.AddAssets(userName, password, owner, repository, tagName, assets, settings); }
protected override void RunTool() { var tool = new GitReleaseManagerAssetsAdder(FileSystem, Environment, ProcessRunner, Tools); if (_useToken) { tool.AddAssets(Token, Owner, Repository, TagName, Assets, Settings); } else { tool.AddAssets(UserName, Password, Owner, Repository, TagName, Assets, Settings); } }
public void AddAssets() { var tool = new GitReleaseManagerAssetsAdder(FileSystem, Environment, ProcessRunner, Globber, GitReleaseManagerToolResolver); tool.AddAssets(UserName, Password, Owner, Repository, TagName, Assets, Settings); }