C# 클래스 Kudu.Core.Deployment.DeploymentManager

상속: IDeploymentManager
파일 보기 프로젝트 열기: projectkudu/kudu 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DeploymentScriptFileName string

Private Properties

프로퍼티 타입 설명
Build System.Threading.Tasks.Task
CleanBuild void
EnumerateResults IEnumerable
FailDeployment void
FinishDeployment void
GenerateTemporaryId string
GetActiveDeploymentManifestPath string
GetDeploymentManifestPath string
GetLogPath string
GetLoggerForFile IDetailedLogger
GetOrCreateStatusFile IDeploymentStatusFile
GetOutputPath string
GetPurgeFailedDeployments IEnumerable
GetPurgeObsoleteDeployments IEnumerable
GetPurgeTemporaryDeployments IEnumerable
GetResult DeployResult
GetRoot string
IsActive bool
MarkStatusComplete void
PreDeployment void
PurgeAndGetDeployments IEnumerable
PurgeDeployments IEnumerable
TrimId string
TryGetVsProjectId string
TryTouchWebConfig void
VerifyDeployment IDeploymentStatusFile

공개 메소드들

메소드 설명
CreateTemporaryChangeSet ( string authorName = null, string authorEmail = null, string message = null ) : ChangeSet
CreateTemporaryDeployment ( string statusText, ChangeSet &tempChangeSet, ChangeSet changeSet = null, string deployedBy = null ) : IDisposable
Delete ( string id ) : void
DeployAsync ( IRepository repository, ChangeSet changeSet, string deployer, bool clean, bool needFileUpdate = true ) : Task
DeploymentManager ( ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IOperationLock deploymentLock, ILogger globalLogger, IWebHooksManager hooksManager, IFunctionManager functionManager ) : System
GetCachedDeploymentScriptPath ( IEnvironment environment ) : string
GetDeploymentScriptContent ( ) : string

Prepare a directory with the deployment script and .deployment file.

GetLogEntries ( string id ) : IEnumerable
GetLogEntryDetails ( string id, string entryId ) : IEnumerable
GetLogger ( string id ) : ILogger
GetResult ( string id ) : DeployResult
GetResults ( ) : IEnumerable

비공개 메소드들

메소드 설명
Build ( Kudu.Core.SourceControl.ChangeSet changeSet, ITracer tracer, IDisposable deployStep, IFileFinder fileFinder, DeploymentAnalytics deploymentAnalytics ) : System.Threading.Tasks.Task

Builds and deploys a particular changeset. Puts all build artifacts in a deployments/{id}

CleanBuild ( ITracer tracer, string buildTempPath ) : void
EnumerateResults ( ) : IEnumerable
FailDeployment ( ITracer tracer, IDisposable deployStep, DeploymentAnalytics deploymentAnalytics, Exception ex ) : void
FinishDeployment ( string id, IDisposable deployStep ) : void

Runs post deployment steps. - Marks the active deployment - Sets the complete flag

GenerateTemporaryId ( int lenght = 8 ) : string
GetActiveDeploymentManifestPath ( ) : string
GetDeploymentManifestPath ( string id ) : string
GetLogPath ( string id, bool ensureDirectory = true ) : string

This function handles getting the path for the log file. If 'log.xml' exists then use that which will use XmlLogger, this is to support existing log files else use 'log.log' which will use TextLogger. Moving forward deployment will always use text logger. The logic to get the right logger is in GetLoggerForFile()

GetLoggerForFile ( string logPath ) : IDetailedLogger

use XmlLogger if the file ends with .xml Otherwise use StructuredTextLogger

GetOrCreateStatusFile ( ChangeSet changeSet, ITracer tracer, string deployer ) : IDeploymentStatusFile
GetOutputPath ( IEnvironment environment, IDeploymentSettingsManager perDeploymentSettings ) : string
GetPurgeFailedDeployments ( IEnumerable results ) : IEnumerable
GetPurgeObsoleteDeployments ( IEnumerable results ) : IEnumerable
GetPurgeTemporaryDeployments ( IEnumerable results ) : IEnumerable
GetResult ( string id, string activeDeploymentId, bool isDeploying ) : DeployResult
GetRoot ( string id, bool ensureDirectory = true ) : string
IsActive ( string id ) : bool
MarkStatusComplete ( IDeploymentStatusFile status, bool success ) : void
PreDeployment ( ITracer tracer ) : void
PurgeAndGetDeployments ( ) : IEnumerable
PurgeDeployments ( IEnumerable results ) : IEnumerable
TrimId ( string id ) : string
TryGetVsProjectId ( DeploymentContext context ) : string
TryTouchWebConfig ( DeploymentContext context ) : void
VerifyDeployment ( string id, bool isDeploying ) : IDeploymentStatusFile

Ensure the deployment is in a valid state.

메소드 상세

CreateTemporaryChangeSet() 공개 정적인 메소드

public static CreateTemporaryChangeSet ( string authorName = null, string authorEmail = null, string message = null ) : ChangeSet
authorName string
authorEmail string
message string
리턴 ChangeSet

CreateTemporaryDeployment() 공개 메소드

public CreateTemporaryDeployment ( string statusText, ChangeSet &tempChangeSet, ChangeSet changeSet = null, string deployedBy = null ) : IDisposable
statusText string
tempChangeSet ChangeSet
changeSet ChangeSet
deployedBy string
리턴 IDisposable

Delete() 공개 메소드

public Delete ( string id ) : void
id string
리턴 void

DeployAsync() 공개 메소드

public DeployAsync ( IRepository repository, ChangeSet changeSet, string deployer, bool clean, bool needFileUpdate = true ) : Task
repository IRepository
changeSet ChangeSet
deployer string
clean bool
needFileUpdate bool
리턴 Task

DeploymentManager() 공개 메소드

public DeploymentManager ( ISiteBuilderFactory builderFactory, IEnvironment environment, ITraceFactory traceFactory, IAnalytics analytics, IDeploymentSettingsManager settings, IDeploymentStatusManager status, IOperationLock deploymentLock, ILogger globalLogger, IWebHooksManager hooksManager, IFunctionManager functionManager ) : System
builderFactory ISiteBuilderFactory
environment IEnvironment
traceFactory ITraceFactory
analytics IAnalytics
settings IDeploymentSettingsManager
status IDeploymentStatusManager
deploymentLock IOperationLock
globalLogger ILogger
hooksManager IWebHooksManager
functionManager IFunctionManager
리턴 System

GetCachedDeploymentScriptPath() 공개 정적인 메소드

public static GetCachedDeploymentScriptPath ( IEnvironment environment ) : string
environment IEnvironment
리턴 string

GetDeploymentScriptContent() 공개 메소드

Prepare a directory with the deployment script and .deployment file.
public GetDeploymentScriptContent ( ) : string
리턴 string

GetLogEntries() 공개 메소드

public GetLogEntries ( string id ) : IEnumerable
id string
리턴 IEnumerable

GetLogEntryDetails() 공개 메소드

public GetLogEntryDetails ( string id, string entryId ) : IEnumerable
id string
entryId string
리턴 IEnumerable

GetLogger() 공개 메소드

public GetLogger ( string id ) : ILogger
id string
리턴 ILogger

GetResult() 공개 메소드

public GetResult ( string id ) : DeployResult
id string
리턴 DeployResult

GetResults() 공개 메소드

public GetResults ( ) : IEnumerable
리턴 IEnumerable

프로퍼티 상세

DeploymentScriptFileName 공개적으로 정적으로 프로퍼티

public static string DeploymentScriptFileName
리턴 string