C# Class Microsoft.ALMRangers.RMWorkflowMigrator.Generator.PowerShell.ScriptGenerator

Generates a series of PowerShell scripts for a Release Management release template given a DeploymentSequence object.
Datei anzeigen Open project: ALM-Rangers/Migrate-assets-from-RM-server-to-VSTS Class Usage Examples

Public Methods

Method Description
GenerateScriptAsync ( DeploymentSequence sequence, string targetPath ) : System.Threading.Tasks.Task

Generates the script.

ScriptGenerator ( IFileSystem fs, IRMComponentRepository componentRepo, IRMUserRepository userRepo, IRMDeployerToolRepository deployerToolRepo, bool generateInitializationScript = true ) : System

Private Methods

Method Description
CreateScriptAction ( RMComponent component, ReleaseAction action ) : ScriptAction
CreateScriptFromTemplate ( IEnumerable scriptElements, IEnumerable manualInterventionElements, IEnumerable scriptParams, bool generateInitScript ) : string
CreateScriptManualIntervention ( ManualIntervention manualIntervention ) : Task
GetActionGenerationArgs ( ReleaseAction action, GenerationEventType eventType ) : GenerationEventArgs
GetContainerGenerationArgs ( IReleaseActionContainer container, GenerationEventType eventType ) : GenerationEventArgs
ProcessContainerContainerAsync ( int stageId, IReleaseActionContainer container, string targetPath ) : System.Threading.Tasks.Task
ProcessReleaseActionContainerAsync ( int stageId, IEnumerable actions, string targetPath ) : System.Threading.Tasks.Task
ResolveRollbackActions ( int stageId, IEnumerable actions, IReadOnlyCollection scriptElements ) : RollbackActionResolutionResult>>.Task

Method Details

GenerateScriptAsync() public method

Generates the script.
public GenerateScriptAsync ( DeploymentSequence sequence, string targetPath ) : System.Threading.Tasks.Task
sequence Microsoft.ALMRangers.RMWorkflowMigrator.Parser.Model.DeploymentSequence /// The sequence. ///
targetPath string /// The target path. ///
return System.Threading.Tasks.Task

ScriptGenerator() public method

public ScriptGenerator ( IFileSystem fs, IRMComponentRepository componentRepo, IRMUserRepository userRepo, IRMDeployerToolRepository deployerToolRepo, bool generateInitializationScript = true ) : System
fs IFileSystem
componentRepo IRMComponentRepository
userRepo IRMUserRepository
deployerToolRepo IRMDeployerToolRepository
generateInitializationScript bool
return System