lib/sensu/daemon.rb
def print_settings!(settings)
      redacted_settings = redact_sensitive(settings.to_hash)
      @logger.warn("outputting compiled configuration and exiting")
      puts Sensu::JSON.dump(redacted_settings, :pretty => true)
      exit(settings.errors.empty? ? 0 : 2)
    end
# Print the Sensu settings (JSON) to STDOUT and immediately exit
# the process with the appropriate exit status code. This method
# is used while troubleshooting configuration issues, triggered by
# a CLI argument, e.g. `--print_config`. Sensu settings with
# sensitive values (e.g. passwords) are first redacted.
#
# @param settings [Object]
Print the Sensu settings (JSON) to STDOUT and immediately exit
the process with the appropriate exit status code. This method
is used while troubleshooting configuration issues, triggered by
a CLI argument, e.g.
Print the Sensu settings ( JSON ) to STDOUT and immediately exit the process with the appropriate exit status code . This method is used while troubleshooting configuration issues triggered by a CLI argument e . g .
def print_settings!(settings)
      redacted_settings = redact_sensitive(settings.to_hash)
      @logger.warn("outputting compiled configuration and exiting")
      puts Sensu::JSON.dump(redacted_settings, :pretty => true)
      exit(settings.errors.empty? ? 0 : 2)
    end
def print_settings! ( settings ) redacted_settings = redact_sensitive ( settings . to_hash ) @logger . warn ( "outputting compiled configuration and exiting" ) puts Sensu :: JSON . dump ( redacted_settings , :pretty => true ) exit ( settings . errors . empty? ? 0 : 2 ) end
Print the Sensu settings (JSON) to STDOUT and immediately exit
the process with the appropriate exit status code.
Print the Sensu settings ( JSON ) to STDOUT and immediately exit the process with the appropriate exit status code .
settings
None