Sha256: 4c624dd60ab3849b817d8c93773850fdbc11d8ae65c7f3981066c858c84bc153
Contents?: true
Size: 375 Bytes
Versions: 4
Compression:
Stored size: 375 Bytes
Contents
module ActiveGit class FileSave < FileEvent def synchronize(synchronizer) synchronizer.define_job do ActiveGit.configuration.logger.debug "[ActiveGit] Writing file #{file_name}" FileUtils.mkpath(File.dirname(file_name)) unless Dir.exist?(File.dirname(file_name)) File.open(file_name, 'w') { |f| f.puts json } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems