private static string GetServiceFileName(AppInfo appInfo) { return($"{GetServiceName(appInfo)}.service"); }
private static string GetServiceName(AppInfo appInfo) { return($"{appInfo}".ToLowerInvariant()); }
public void Stop(AppInfo appInfo) { var serviceName = GetServiceName(appInfo); ProcessExecutor.Execute(SystemCtlExecutable, nameof(Stop), $"stop {serviceName}"); }
public string GetAppPath(AppInfo appInfo) { return(Path.Combine(Path.GetFullPath(_appSettings.InstallDirectoryPath), appInfo.ToString())); }
public string GetExecutablePath(AppInfo appInfo) { return(Path.Combine(GetAppPath(appInfo), _appSettings.PackageExecutables[appInfo.PackageId])); }
public bool IsInstalled(AppInfo appInfo) { EnsureInstallDirectory(); return(Directory.Exists(Path.Combine(Path.GetFullPath(_appSettings.InstallDirectoryPath), appInfo.ToString()))); }