anchor.diff:    cf create-service-broker $SERVICE_BROKER_NAME $USERNAME $PASSWORD $APP_URL || cf update-service-broker $SERVICE_BROKER_NAME $USERNAME $PASSWORD $APP_URL
   }
   
  +function clean_up() {
  +  cf logout
  +  rm -rf $CF_HOME
  +}
  +
   function print_deployment_status() {
     if [[ $DEPLOYMENT_STATUS != 0 ]]; then
       echo "Deployment failed!"
  
positive.code: PASSWORD="<%= p('nfsbrokerpush.password') %>"
  APP_URL=$SCHEME://$APP_NAME.$DOMAIN
  
  mkdir -p $CF_HOME
  
  ERROR_EXIT_CODE=<%= p('nfsbrokerpush.error_on_misconfiguration') ? 1 : 0 %>
  DEPLOYMENT_STATUS=0
  
  function authenticate_and_target() {
    cf api $API_ENDPOINT <% if p('nfsbrokerpush.skip_cert_verify') %>--skip-ssl-validation<% end %>
    <% if_p('nfsbrokerpush.cf.client_id', 'nfsbrokerpush.cf.client_secret') do |client_id, client_secret| %>
      cf auth "<%= client_id %>" "<%= client_secret %>" --client-credentials
  
negative.code: <% if p('nfsbrokerpush.register_broker') %>
    register_service
  <% end %>
  clean_up
  print_deployment_status
  