Kudu.Core.Deployment.DeploymentManager.GetOutputPath C# (CSharp) Method

GetOutputPath() private static method

private static GetOutputPath ( IEnvironment environment, IDeploymentSettingsManager perDeploymentSettings ) : string
environment IEnvironment
perDeploymentSettings IDeploymentSettingsManager
return string
        private static string GetOutputPath(IEnvironment environment, IDeploymentSettingsManager perDeploymentSettings)
        {
            string targetPath = perDeploymentSettings.GetTargetPath();

            if (!String.IsNullOrEmpty(targetPath))
            {
                targetPath = targetPath.Trim('\\', '/');
                return Path.GetFullPath(Path.Combine(environment.WebRootPath, targetPath));
            }

            return environment.WebRootPath;
        }