class Process
class Process
lib/process.tya:2
Process provides the process/Process standard library API.
Source
# Process provides the process/Process standard library API.
class Process
# Process.command stores instance state.
# @type Nil
command: nil
# Process.initialize stores a command.
# @param command Any command value.
# @return Self the initialized object.
initialize: command = nil ->
self.command = command
# Process.chdir provides the process/Process standard library operation.
# @param path String path value.
# @return Any the resulting value.
chdir: path ->
chdir(path)
# Process.cwd provides the process/Process standard library operation.
# @return Any the resulting value.
cwd: ->
cwd()
# Process.exec replaces this process where the platform supports exec.
# @param command Any command value.
# @param options Dict options value.
# @return Any the resulting value.
exec: command = nil, options = {} ->
if self.command != nil
if command != nil
options = command
command = self.command
process_exec(command, options)
# Process.run provides the process/Process standard library operation.
# @param command Any command value.
# @param options Dict options value.
# @return Any the resulting value.
run: command = nil, options = {} ->
if self.command != nil
if command != nil
options = command
command = self.command
process_run(command, options)
Instance Variables
command
Process.command
lib/process.tya:5
Process.command stores instance state.
Source
# Process.command stores instance state.
# @type Nil
command: nil
Methods
chdir
Process.chdir(path)
lib/process.tya:16
Process.chdir provides the process/Process standard library operation.
Source
# Process.chdir provides the process/Process standard library operation.
# @param path String path value.
# @return Any the resulting value.
chdir: path ->
chdir(path)
cwd
Process.cwd()
lib/process.tya:21
Process.cwd provides the process/Process standard library operation.
Source
# Process.cwd provides the process/Process standard library operation.
# @return Any the resulting value.
cwd: ->
cwd()
exec
Process.exec(command = nil, options = {})
lib/process.tya:28
Process.exec replaces this process where the platform supports exec.
Source
# Process.exec replaces this process where the platform supports exec.
# @param command Any command value.
# @param options Dict options value.
# @return Any the resulting value.
exec: command = nil, options = {} ->
if self.command != nil
if command != nil
options = command
command = self.command
process_exec(command, options)
initialize
Process.initialize(command = nil)
lib/process.tya:10
Process.initialize stores a command.
Source
# Process.initialize stores a command.
# @param command Any command value.
# @return Self the initialized object.
initialize: command = nil ->
self.command = command
run
Process.run(command = nil, options = {})
lib/process.tya:39
Process.run provides the process/Process standard library operation.
Source
# Process.run provides the process/Process standard library operation.
# @param command Any command value.
# @param options Dict options value.
# @return Any the resulting value.
run: command = nil, options = {} ->
if self.command != nil
if command != nil
options = command
command = self.command
process_run(command, options)