Sha256: 5a494ae07b6c6a20876fa09fe38d90d281d5a7d9de69f9ea5ae068c1d72a4209
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
module Superhosting module Patches module PathMapper module FileNode include Helper::Logger def _put!(content) self.debug_operation(desc: { code: :file, data: { path: @path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end def _safe_put!(content) self.debug_operation(desc: { code: :file, data: { path: @path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end def _remove_line!(line) self.debug_operation(desc: { code: :file, data: { path: @path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end def _append_line!(content) self.debug_operation(desc: { code: :file, data: { path: @path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end def _rename!(new_path) self.debug_operation(desc: { code: :file, data: { path: @path, to: new_path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end def _delete!(full: false) self.debug_operation(desc: { code: :file, data: { path: @path } }) do |&blk| super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) } end end end end end end ::PathMapper::FileNode.send(:prepend, Superhosting::Patches::PathMapper::FileNode)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superhosting-0.0.2 | lib/superhosting/patches/path_mapper/file_node.rb |