C# Class NugetCracker.Utilities.BuildHelper

Exibir arquivo Open project: monoman/NugetCracker

Public Methods

Method Description
Build ( ILogger logger, IVersionable component, string packagesOutputDirectory ) : bool
BuildChain ( ILogger logger, IVersionable component, string packagesOutputDirectory, IEnumerable componentsToRebuild ) : bool
ClearPackageInstallDirectories ( ILogger logger, IEnumerable components ) : void
CopyIfNew ( ILogger logger, INugetSpec nuget, string packagesOutputDirectory, string destination ) : void
InstallPackage ( ILogger logger, IReference newPackage, string installDir, string sourceDirectory = null ) : bool
PackageExists ( INugetSpec nuget, string packagesOutputDirectory ) : bool
ReinstallPackageOn ( ILogger logger, IReference newPackage, string sourceDirectory, IEnumerable installDirs ) : bool
RemoveInstalledVersions ( ILogger logger, IReference package, string installDir ) : void
UpdatePackageDependency ( ILogger logger, IComponent package, string packagesOutputDirectory ) : bool

Private Methods

Method Description
BuildAndUpdate ( ILogger logger, IVersionable component, string packagesOutputDirectory ) : bool
FindPackage ( ILogger logger, IReference newPackage, string sourceDirectory ) : NuGet.IPackage

Method Details

Build() public static method

public static Build ( ILogger logger, IVersionable component, string packagesOutputDirectory ) : bool
logger ILogger
component IVersionable
packagesOutputDirectory string
return bool

BuildChain() public static method

public static BuildChain ( ILogger logger, IVersionable component, string packagesOutputDirectory, IEnumerable componentsToRebuild ) : bool
logger ILogger
component IVersionable
packagesOutputDirectory string
componentsToRebuild IEnumerable
return bool

ClearPackageInstallDirectories() public static method

public static ClearPackageInstallDirectories ( ILogger logger, IEnumerable components ) : void
logger ILogger
components IEnumerable
return void

CopyIfNew() public static method

public static CopyIfNew ( ILogger logger, INugetSpec nuget, string packagesOutputDirectory, string destination ) : void
logger ILogger
nuget INugetSpec
packagesOutputDirectory string
destination string
return void

InstallPackage() public static method

public static InstallPackage ( ILogger logger, IReference newPackage, string installDir, string sourceDirectory = null ) : bool
logger ILogger
newPackage IReference
installDir string
sourceDirectory string
return bool

PackageExists() public static method

public static PackageExists ( INugetSpec nuget, string packagesOutputDirectory ) : bool
nuget INugetSpec
packagesOutputDirectory string
return bool

ReinstallPackageOn() public static method

public static ReinstallPackageOn ( ILogger logger, IReference newPackage, string sourceDirectory, IEnumerable installDirs ) : bool
logger ILogger
newPackage IReference
sourceDirectory string
installDirs IEnumerable
return bool

RemoveInstalledVersions() public static method

public static RemoveInstalledVersions ( ILogger logger, IReference package, string installDir ) : void
logger ILogger
package IReference
installDir string
return void

UpdatePackageDependency() public static method

public static UpdatePackageDependency ( ILogger logger, IComponent package, string packagesOutputDirectory ) : bool
logger ILogger
package IComponent
packagesOutputDirectory string
return bool