# File lib/fpm/program.rb, line 116 def fpmrc(options) # Skip if we have no HOME environment variable. return if !ENV.include?("HOME") rcpath = File.expand_path("~/.fpmrc") return if !File.exists?(rcpath) # fpmrc exists, read it as flags, one per line. File.new(rcpath, "r").each do |line| flag = line.chomp begin options.parse([flag]) rescue => e $stderr.puts "Error parsing fpmrc (#{rcpath})" raise e end # begin end # File.new end