Skip to content

Commit

Permalink
Update version to 8.0.1.7
Browse files Browse the repository at this point in the history
Fix Unlock option on pushw
  • Loading branch information
Paul-Shvedun committed Dec 6, 2024
1 parent dc37978 commit c6bbf9a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions clio/Package/ApplicationInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class ApplicationInstaller : BasePackageInstaller, IApplicationInstaller
public ApplicationInstaller(IApplicationLogProvider applicationLogProvider, EnvironmentSettings environmentSettings,
IApplicationClientFactory applicationClientFactory, IApplication application,
IPackageArchiver packageArchiver, ISqlScriptExecutor scriptExecutor,
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger)
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger, IPackageLockManager packageLockManager)
: base(applicationLogProvider, environmentSettings, applicationClientFactory, application,
packageArchiver, scriptExecutor, serviceUrlBuilder, fileSystem, logger){ }
packageArchiver, scriptExecutor, serviceUrlBuilder, fileSystem, logger, packageLockManager) { }

#endregion

Expand Down
8 changes: 5 additions & 3 deletions clio/Package/BasePackageInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
using System.Linq;

public abstract class BasePackageInstaller {

Expand All @@ -28,6 +29,7 @@ public abstract class BasePackageInstaller {
private readonly IPackageArchiver _packageArchiver;
private readonly ISqlScriptExecutor _scriptExecutor;
private readonly IServiceUrlBuilder _serviceUrlBuilder;
private readonly IPackageLockManager _packageLockManager;
protected readonly ILogger _logger;
private readonly IApplication _application;
private string _reportPath;
Expand All @@ -45,7 +47,7 @@ public abstract class BasePackageInstaller {
public BasePackageInstaller(IApplicationLogProvider applicationLogProvider, EnvironmentSettings environmentSettings,
IApplicationClientFactory applicationClientFactory, IApplication application,
IPackageArchiver packageArchiver, ISqlScriptExecutor scriptExecutor,
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger) {
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger, IPackageLockManager packageLockManager) {
environmentSettings.CheckArgumentNull(nameof(environmentSettings));
applicationClientFactory.CheckArgumentNull(nameof(applicationClientFactory));
application.CheckArgumentNull(nameof(application));
Expand All @@ -63,6 +65,7 @@ public BasePackageInstaller(IApplicationLogProvider applicationLogProvider, Envi
_serviceUrlBuilder = serviceUrlBuilder;
_fileSystem = fileSystem;
_logger = logger;
_packageLockManager = packageLockManager;
}

#endregion
Expand Down Expand Up @@ -93,8 +96,7 @@ private IApplicationClient CreateApplicationClient(EnvironmentSettings environme
_applicationClientFactory.CreateClient(environmentSettings);

private void UnlockMaintainerPackageInternal(EnvironmentSettings environmentSettings) {
IApplicationClient applicationClient = CreateApplicationClient(environmentSettings);
applicationClient.CallConfigurationService("CreatioApiGateway", "UnlockPackages", "{}");
_packageLockManager.Unlock(Enumerable.Empty<string>());
}

private void SaveLogFile(string logText, string reportPath) {
Expand Down
4 changes: 2 additions & 2 deletions clio/Package/PackageInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class PackageInstaller : BasePackageInstaller, IPackageInstaller
public PackageInstaller(IApplicationLogProvider applicationLogProvider, EnvironmentSettings environmentSettings,
IApplicationClientFactory applicationClientFactory, IApplication application,
IPackageArchiver packageArchiver, ISqlScriptExecutor scriptExecutor,
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger)
IServiceUrlBuilder serviceUrlBuilder, IFileSystem fileSystem, ILogger logger, IPackageLockManager packageLockManager)
: base(applicationLogProvider, environmentSettings, applicationClientFactory, application,
packageArchiver, scriptExecutor, serviceUrlBuilder, fileSystem, logger) {
packageArchiver, scriptExecutor, serviceUrlBuilder, fileSystem, logger, packageLockManager) {
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion clio/clio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Authors>creatio rnd team</Authors>
<PackageTags>cli ATF clio creatio</PackageTags>
<NeutralLanguage>en</NeutralLanguage>
<AssemblyVersion>8.0.1.6</AssemblyVersion>
<AssemblyVersion>8.0.1.7</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<Version>$(AssemblyVersion)</Version>
<Description>CLI interface for Creatio</Description>
Expand Down

0 comments on commit c6bbf9a

Please sign in to comment.