class Utils::ProbeClient::EnvProxy
def [](key)
-
(String)
- the value of the specified environment variable
Parameters:
-
key
(String
) -- the environment variable key to retrieve
def [](key) response = @server.transmit_with_response(type: 'get_env', key:) response.env end
def []=(key, value)
-
(String)
- the updated environment variable value returned by the server
Parameters:
-
value
(String
) -- the value to assign to the environment variable -
key
(String
) -- the environment variable key to set
def []=(key, value) response = @server.transmit_with_response(type: 'set_env', key:, value:) response.env end
def initialize(server)
-
server
(UnixSocks::Server
) -- the server object to be assigned
def initialize(server) @server = server end