Class: DatalackeyParentProcess

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(to_lackey, from_lackey) ⇒ DatalackeyParentProcess

Returns a new instance of DatalackeyParentProcess.



116
117
118
119
120
121
122
# File 'lib/datalackeylib.rb', line 116

def initialize(to_lackey, from_lackey)
  @exit_code = 0
  @stdout = from_lackey
  @stdin = to_lackey
  @stderr = nil
  @executable = nil
end

Instance Attribute Details

#executableObject (readonly)

Returns the value of attribute executable.



114
115
116
# File 'lib/datalackeylib.rb', line 114

def executable
  @executable
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



114
115
116
# File 'lib/datalackeylib.rb', line 114

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



114
115
116
# File 'lib/datalackeylib.rb', line 114

def stderr
  @stderr
end

#stdinObject (readonly)

Returns the value of attribute stdin.



114
115
116
# File 'lib/datalackeylib.rb', line 114

def stdin
  @stdin
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



114
115
116
# File 'lib/datalackeylib.rb', line 114

def stdout
  @stdout
end

Instance Method Details

#finishObject



124
125
126
# File 'lib/datalackeylib.rb', line 124

def finish
  @stdin.close
end