method

append_file

append_file(relative_destination, data)
protected

Append text to a file

Example

  append_file 'config/environments/test.rb', 'config.gem "rspec"'