class AdLocalize::Repositories::FileSystemRepository

Public Instance Methods

create_directory(path:) click to toggle source
# File lib/ad_localize/repositories/file_system_repository.rb, line 4
def create_directory(path:)
  path.mkpath unless path.directory?
end
write(content:, path:) click to toggle source
# File lib/ad_localize/repositories/file_system_repository.rb, line 8
def write(content:, path:)
  path.open("w") { |file| file.write content }
end