Class: Ronin::RPC::PHP::Shell

Inherits:
RPC::Shell
  • Object
show all
Defined in:
lib/ronin/rpc/php/shell.rb

Instance Method Summary collapse

Instance Method Details

#cd(path) ⇒ Object

Changes the current working directory.



41
42
43
# File 'lib/ronin/rpc/php/shell.rb', line 41

def cd(path)
  call(:cd,path)
end

#cwdObject

Returns the current working directory.



34
35
36
# File 'lib/ronin/rpc/php/shell.rb', line 34

def cwd
  call(:cwd)
end

#envObject

Returns the environment variables.



48
49
50
# File 'lib/ronin/rpc/php/shell.rb', line 48

def env
  call(:env)
end

#getenv(name) ⇒ Object

Returns the environment variable of the specified name.



55
56
57
# File 'lib/ronin/rpc/php/shell.rb', line 55

def getenv(name)
  call(:getenv,name)
end

#setenv(name, value) ⇒ Object

Sets the environment variable of the specified name with the specified value.



63
64
65
# File 'lib/ronin/rpc/php/shell.rb', line 63

def setenv(name,value)
  call(:setenv,name,value)
end