Sha256: 9662e5f93705d4244145415de50155556d7d6ae8b2a3d3eea9123ccca634d478
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
module Superhosting module Patches module PathMapper module NullNode include Helper::Logger def _create! self.debug_operation(desc: { code: :directory, 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 _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 _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 end end end end ::PathMapper::NullNode.send(:prepend, Superhosting::Patches::PathMapper::NullNode)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superhosting-0.0.2 | lib/superhosting/patches/path_mapper/null_node.rb |