lib/pdk/util/filesystem.rb in pdk-2.6.1 vs lib/pdk/util/filesystem.rb in pdk-2.7.0
- old
+ new
@@ -3,11 +3,11 @@
module PDK
module Util
module Filesystem
def write_file(path, content)
- raise ArgumentError, _('content must be a String') unless content.is_a?(String)
- raise ArgumentError, _('path must be a String or Pathname') unless path.is_a?(String) || path.respond_to?(:to_path)
+ raise ArgumentError, 'content must be a String' unless content.is_a?(String)
+ raise ArgumentError, 'path must be a String or Pathname' unless path.is_a?(String) || path.respond_to?(:to_path)
# Harmonize newlines across platforms.
content = content.encode(universal_newline: true)
# Make sure all written files have a trailing newline.