Method: Aruba::Platforms::UnixPlatform#write_file
- Defined in:
- lib/aruba/platforms/unix_platform.rb
#write_file(path, content) ⇒ Object
Write to file
229 230 231 232 233 234 235 236 237 |
# File 'lib/aruba/platforms/unix_platform.rb', line 229 def write_file(path, content) if RUBY_VERSION < '1.9.3' File.open(path, 'wb') do |f| f.print content end else File.write(path, content) end end |