Class: Miniswen::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/miniswen/environment.rb

Overview

Represents a current runtime environment for an agent (the one where instructions must be executed)

Direct Known Subclasses

Local

Defined Under Namespace

Classes: ExecResult

Instance Method Summary collapse

Instance Method Details

#exec(cmd, timeout: nil, env: nil) ⇒ Object

Execute a shell command

Raises:

  • (NotImplementedError)


12
# File 'lib/miniswen/environment.rb', line 12

def exec(cmd, timeout: nil, env: nil) = raise NotImplementedError