Sha256: 0c8997ad00947afd8642de7f76ba1bb31a15070ea5c8929ac07759ef3639f7fe

Contents?: true

Size: 757 Bytes

Versions: 8

Compression:

Stored size: 757 Bytes

Contents

class Etc

  Group = Struct.new(:name, :passwd, :gid, :mem)
  Passwd = Struct.new(:name, :passwd, :uid, :gid, :dir, :shell)

  @group = Group.new("foo", "bar", 1, ["foo", "bar"])
  @passwd = Passwd.new("foo", "bar", 1, 1, "foo", "bar")

  def endgrent(); end

  def endpwent(); end

  def getgrent(); return @group; end

  def getgrgid(group_id); return @group; end

  def getgrnam(name); return @group; end

  def getlogin(); return "Bob"; end

  def getpwent(); return @passwd; end

  def getpwnam(name); return @passwd; end

  def getpwuid(uid); return @passwd; end

  def group(); @group; end

  def passwd(); @passwd; end

  def setgrent(); end

  def setpwent(); end

  def sysconfdir()
    "/usr/local/etc"
  end

  def systmpdir(); "/tmp"; end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rsense-core-0.6.6 stubs/1.8/etc.rb
rsense-core-0.6.5 stubs/1.8/etc.rb
rsense-core-0.6.4 stubs/1.8/etc.rb
rsense-core-0.6.2 stubs/1.8/etc.rb
rsense-core-0.6.1 stubs/1.8/etc.rb
rsense-core-0.6.0 stubs/1.8/etc.rb
rsense-core-0.5.9 stubs/1.8/etc.rb
rsense-core-0.5.8 stubs/1.8/etc.rb