Method: Bundler::SharedHelpers#write_to_gemfile
- Defined in:
- lib/bundler/shared_helpers.rb
permalink #write_to_gemfile(gemfile_path, contents) ⇒ Object
[View source]
221 222 223 |
# File 'lib/bundler/shared_helpers.rb', line 221 def write_to_gemfile(gemfile_path, contents) filesystem_access(gemfile_path) {|g| File.open(g, "w") {|file| file.puts contents } } end |