Method: ManageEngine::APMUtil#writeProperties
- Defined in:
- lib/agent/util/am_util.rb
#writeProperties(f, props) ⇒ Object
write the Properties into the Property file
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/agent/util/am_util.rb', line 73 def writeProperties(f,props) begin file = File.new(f,"w+") props.each {|key,value| file.puts "#{key}=#{value}\n"} rescue Exception=>e @log.info "Problem in Writing Property File : \n File : #{f}" @log.logException "#{e.}",e ensure file.close end end |