module Superhosting::Patches::PathMapper::FileNode
Public Instance Methods
_append_line!(content)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 25 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
_delete!(full: false)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 37 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
_put!(content)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 7 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
_remove_line!(line)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 19 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
_rename!(new_path)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 31 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
_safe_put!(content)
click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/file_node.rb, line 13 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