-
-
Save PetersonDave/022240fbea2eacc1f921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string GetExcludedDirectories() | |
{ | |
var environment = Sitecore.Azure.Deployments.Environments.Environment.GetEnvironment(Settings.EnvironmentDefinitions.GetEnvironment("Local Emulator")); | |
var location = environment.GetLocation("localhost"); | |
var farm = location.GetFarm("Delivery01", DeploymentType.ContentDelivery); | |
var role = farm.WebRole01; | |
var deployment = role.GetDeployment(DeploymentSlot.Production); | |
// get values from field "Exclude Directories" | |
return deployment.FilePathFilter.ExcludeDirectories; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment