module Superhosting::Patches::PathMapper::DirNode

Public Instance Methods

_delete!(full: false) click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/dir_node.rb, line 7
def _delete!(full: false)
  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
_rename!(new_path) click to toggle source
Calls superclass method
# File lib/superhosting/patches/path_mapper/dir_node.rb, line 13
def _rename!(new_path)
  self.debug_operation(desc: { code: :directory, data: { path: @path, to: new_path } }) do |&blk|
    super.tap {|res| blk.call(code: res[:code], diff: res[:d][:diff]) }
  end
end