class Thor::Actions::InjectIntoFile

def replace!(regexp, string, force)


Adds the content to the file.
def replace!(regexp, string, force)
  if force || !replacement_present?
    success = content.gsub!(regexp, string)
    File.open(destination, "wb") { |file| file.write(content) } unless pretend?
    success
  end
end