implement push command
[teamcity/dotNetPackagesSupport.git] / nuget-agent / src / jetbrains / buildServer / nuget / agent / commands / CommandFactory.java
index ecabe9e1e96b4c21977e294d7777e199e0182774..627167a10aa7eeda9ab1718dcff32a345cb0a021 100644 (file)
@@ -17,6 +17,7 @@
 package jetbrains.buildServer.nuget.agent.commands;\r
 \r
 import jetbrains.buildServer.RunBuildException;\r
+import jetbrains.buildServer.nuget.agent.parameters.NuGetPublishParameters;\r
 import jetbrains.buildServer.nuget.agent.parameters.PackagesInstallParameters;\r
 import jetbrains.buildServer.nuget.agent.parameters.PackagesUpdateParameters;\r
 import org.jetbrains.annotations.NotNull;\r
@@ -42,6 +43,11 @@ public interface CommandFactory {
                      @NotNull File targetFolder,\r
                      @NotNull Callback<T> factory) throws RunBuildException;\r
 \r
+  @NotNull\r
+  <T> T createPush(@NotNull NuGetPublishParameters params,\r
+                   @NotNull File packagePath,\r
+                   @NotNull Callback<T> factory) throws RunBuildException;\r
+\r
   public interface Callback<T> {\r
     /**\r
      * Called with generated arguments to crate execurable instance or run command\r