public static GitHubUpgrader Create( ITracer tracer, PhysicalFileSystem fileSystem, bool dryRun, bool noVerify, LocalScalarConfig localConfig, out string error) { GitHubUpgrader upgrader = null; GitHubUpgraderConfig gitHubUpgraderConfig = new GitHubUpgraderConfig(tracer, localConfig); if (!gitHubUpgraderConfig.TryLoad(out error)) { return(null); } if (gitHubUpgraderConfig.ConfigError()) { gitHubUpgraderConfig.ConfigAlertMessage(out error); return(null); } upgrader = new GitHubUpgrader( ProcessHelper.GetCurrentProcessVersion(), tracer, fileSystem, gitHubUpgraderConfig, dryRun, noVerify); return(upgrader); }
public static string CurrentScalarVersion() { return(ProcessHelper.GetCurrentProcessVersion()); }
public static bool IsDevelopmentVersion() { Version currentVersion = new Version(ProcessHelper.GetCurrentProcessVersion()); return(currentVersion.Major == 0); }