Sha256: 0c2688a9105c2d5aff18979714544d91415ecd837c8b55a2959394b7b65f5d1d

Contents?: true

Size: 765 Bytes

Versions: 15

Compression:

Stored size: 765 Bytes

Contents

# -*- coding: binary -*-

module Rex
module Post

###
#
# This class wraps the behavior of the Ruby Dir class against a remote entity.
# Refer to the Ruby documentation for expected behavior.
#
###
class Dir

  def Dir.entries(name)
    raise NotImplementedError
  end

  def Dir.foreach(name, &block)
    entries(name).each(&block)
  end

  def Dir.chdir(path)
    raise NotImplementedError
  end

  def Dir.mkdir(path)
    raise NotImplementedError
  end

  def Dir.pwd
    raise NotImplementedError
  end

  def Dir.getwd
    raise NotImplementedError
  end

  def Dir.delete(path)
    raise NotImplementedError
  end

  def Dir.rmdir(path)
    raise NotImplementedError
  end

  def Dir.unlink(path)
    raise NotImplementedError
  end
end

end; end # Post/Rex

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/dir.rb
rex-2.0.12 lib/rex/post/dir.rb
rex-2.0.11 lib/rex/post/dir.rb
rex-2.0.10 lib/rex/post/dir.rb
rex-2.0.9 lib/rex/post/dir.rb
rex-2.0.8 lib/rex/post/dir.rb
rex-2.0.7 lib/rex/post/dir.rb
rex-2.0.5 lib/rex/post/dir.rb
rex-2.0.4 lib/rex/post/dir.rb
dstruct-0.0.1 lib/rex/post/dir.rb
rex-2.0.3 lib/rex/post/dir.rb
librex-0.0.999 lib/rex/post/dir.rb
rex-2.0.2 lib/rex/post/dir.rb
librex-0.0.71 lib/rex/post/dir.rb
librex-0.0.70 lib/rex/post/dir.rb