Class: Ronin::RPC::PHP::Shell
- Inherits:
-
RPC::Shell
- Object
- RPC::Shell
- Ronin::RPC::PHP::Shell
- Defined in:
- lib/ronin/rpc/php/shell.rb
Instance Method Summary collapse
-
#cd(path) ⇒ Object
Changes the current working directory.
-
#cwd ⇒ Object
Returns the current working directory.
-
#env ⇒ Object
Returns the environment variables.
-
#getenv(name) ⇒ Object
Returns the environment variable of the specified name.
-
#setenv(name, value) ⇒ Object
Sets the environment variable of the specified name with the specified value.
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 |
#cwd ⇒ Object
Returns the current working directory.
34 35 36 |
# File 'lib/ronin/rpc/php/shell.rb', line 34 def cwd call(:cwd) end |
#env ⇒ Object
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 |