Bundler::Thor::Actions#gsub_file

Parsed documentation:
View on GitHub
Run a regular expression replacement on a file.

==== Parameters
path<String>:: path of the file to be changed
flag<Regexp|String>:: the regexp or string to be replaced
replacement<String>:: the replacement, can be also given as a block
config<Hash>:: give :verbose => false to not log the status.

==== Example

  gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'

  gsub_file 'README', /rake/, :green do |match|
    match << " no more. Use thor!"
  end
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.