class Pfm::Command::Destroy
def destroy(dir)
def destroy(dir) Idlc::Deploy::Config.add_deployment_var('build', ENV['SERVER_BUILD']) Idlc::Deploy::Config.add_deployment_var('app_release', 'null') if upgraded_terraform? Terraform::Binary::Command.run("-chdir #{dir} destroy") else Terraform::Binary.destroy("#{dir}") end rescue raise DeploymentFailure, 'Finished with errors' end