rename to NuGetActionFactory, add Update packages getters
[teamcity/dotNetPackagesSupport.git] / nuget-agent / src / jetbrains / buildServer / nuget / agent / install / impl / NuGetActionFactoryImpl.java
similarity index 73%
rename from nuget-agent/src/jetbrains/buildServer/nuget/agent/install/impl/NuGetInstallPackageActionFactoryImpl.java
rename to nuget-agent/src/jetbrains/buildServer/nuget/agent/install/impl/NuGetActionFactoryImpl.java
index 1eaa437ec0caa1cc568e559c4806a514c4226fce..afbf859eb31382ec3777215ed788f47585da1e6d 100644 (file)
@@ -19,7 +19,7 @@ package jetbrains.buildServer.nuget.agent.install.impl;
 import jetbrains.buildServer.RunBuildException;\r
 import jetbrains.buildServer.agent.BuildProcess;\r
 import jetbrains.buildServer.agent.BuildRunnerContext;\r
-import jetbrains.buildServer.nuget.agent.install.NuGetInstallPackageActionFactory;\r
+import jetbrains.buildServer.nuget.agent.install.NuGetActionFactory;\r
 import jetbrains.buildServer.nuget.agent.install.PackagesInstallParameters;\r
 import jetbrains.buildServer.nuget.agent.util.CommandlineBuildProcessFactory;\r
 import jetbrains.buildServer.util.FileUtil;\r
@@ -33,17 +33,17 @@ import java.util.List;
  * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
  * Date: 07.07.11 17:49\r
  */\r
-public class NuGetInstallPackageActionFactoryImpl implements NuGetInstallPackageActionFactory {\r
+public class NuGetActionFactoryImpl implements NuGetActionFactory {\r
   private final CommandlineBuildProcessFactory myFactory;\r
 \r
-  public NuGetInstallPackageActionFactoryImpl(CommandlineBuildProcessFactory factory) {\r
+  public NuGetActionFactoryImpl(CommandlineBuildProcessFactory factory) {\r
     myFactory = factory;\r
   }\r
 \r
-  public BuildProcess createBuildProcess(@NotNull final BuildRunnerContext context,\r
-                                         @NotNull final PackagesInstallParameters params,\r
-                                         @NotNull final File packagesConfig,\r
-                                         @NotNull final File targetFolder) throws RunBuildException {\r
+  public BuildProcess createInstall(@NotNull final BuildRunnerContext context,\r
+                                    @NotNull final PackagesInstallParameters params,\r
+                                    @NotNull final File packagesConfig,\r
+                                    @NotNull final File targetFolder) throws RunBuildException {\r
     final List<String> argz = new ArrayList<String>();\r
     argz.add("install");\r
     argz.add(FileUtil.getCanonicalFile(packagesConfig).getPath()); //path to package\r