Sha256: 235bd3fa3f46c25fbd8b372f2a3669b1388c0e50bd32bb9e182ab14639a6053f
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 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 data.git_dump } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_git-0.0.10 | lib/active_git/events/file_save.rb |
active_git-0.0.9 | lib/active_git/events/file_save.rb |
active_git-0.0.8 | lib/active_git/events/file_save.rb |