lib/puppet/provider/sensu_client_config/json.rb
##
# Write @conf hash out to the filesystem.
Write @conf hash out to the filesystem.
Write @conf hash out to the filesystem .
def flush
    sort_properties!
    str = JSON.pretty_generate(conf)
    File.open(config_file, 'w') { |f| f.puts(str) }
  end
def flush sort_properties! str = JSON . pretty_generate ( conf ) File . open ( config_file , 'w' ) { | f | f . puts ( str ) } end
Write @conf hash out to the filesystem.
Write @conf hash out to the filesystem .