def validate_settings!(settings)
      if settings.errors.empty?
        puts "configuration is valid"
        exit
      else
        puts "configuration is invalid"
        puts Sensu::JSON.dump({:errors => @settings.errors}, :pretty => true)
        exit 2
      end
    end
def validate_settings!(settings)
      if settings.errors.empty?
        puts "configuration is valid"
        exit
      else
        puts "configuration is invalid"
        puts Sensu::JSON.dump({:errors => @settings.errors}, :pretty => true)
        exit 2
      end
    end
Determine if the Sensu settings are valid, if there are load or
 validation errors, and immediately exit the process with the
 appropriate exit status code. This method is used to determine
 if the latest configuration changes are valid prior to
 restarting the Sensu service, triggered by a CLI argument, e.g.
 `--validate_config`.

 @param settings [Object]