Exemplo n.º 1
0
        internal override void Execute(SkytapClient client, SkytapConfiguration configuration)
        {
            if (configuration == null)
            {
                this.LogWarning("Environment {0} not found.", this.ConfigurationName);
                return;
            }

            this.LogInformation("Deleting {0} environment...", configuration.Name);
            try
            {
                client.DeleteConfiguration(configuration.Id);
                this.LogInformation("Environment deleted.");
            }
            catch (Exception ex)
            {
                this.LogError("The environment could not be deleted: " + ex.Message);
            }
        }