module Rails::Generators::Actions

def match_file(path, pattern)

def match_file(path, pattern)
  File.read(path).match(pattern) if File.exist?(path)
end