lib/puppet/provider/sensu_api_config/json.rb
# Public: Save changes to the API section of /etc/sensu/config.json to disk.
#
# Returns nothing.
Save changes to the API section of /etc/sensu/config.json to disk.
Returns nothing.
Save changes to the API section of / etc / sensu / config . json to disk . Returns nothing .
def flush
    File.open(config_file, 'w') do |f|
      f.puts JSON.pretty_generate(@conf)
    end
  end
def flush File . open ( config_file , 'w' ) do | f | f . puts JSON . pretty_generate ( @conf ) end end
Public: Save changes to the API section of /etc/sensu/config.json to disk.
Public : Save changes to the API section of / etc / sensu / config . json to disk .