class Pfm::Command::Apply

def apply(dir)

def apply(dir)
  if upgraded_terraform?
    Terraform::Binary::Command.run("-chdir #{dir} apply")
  else
    Terraform::Binary.apply(dir.to_s) || raise
  end
rescue
  raise DeploymentFailure, 'Finished with errors'
end