Sha256: 157e38abc619957ec064f436664b3053ba3da00781c7e12fc04eead6728e70e4

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 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

1 entries across 1 versions & 1 rubygems

Version Path
active_git-0.0.3 lib/active_git/events/file_save.rb