Class: Jenkins::Launcher::Proc

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(native) ⇒ Proc

Returns a new instance of Proc.



8
9
10
# File 'lib/jenkins/launcher.rb', line 8

def initialize(native)
  @native = native
end

Instance Attribute Details

#nativeObject (readonly)

Returns the value of attribute native.



6
7
8
# File 'lib/jenkins/launcher.rb', line 6

def native
  @native
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/jenkins/launcher.rb', line 12

def alive?
  @native.isAlive()
end

#joinObject



16
17
18
# File 'lib/jenkins/launcher.rb', line 16

def join
  @native.join()
end

#killObject



20
21
22
23
# File 'lib/jenkins/launcher.rb', line 20

def kill
  @native.kill()
  nil
end

#stderrObject



33
34
35
# File 'lib/jenkins/launcher.rb', line 33

def stderr
  @native.getStderr().to_io
end

#stdinObject



25
26
27
# File 'lib/jenkins/launcher.rb', line 25

def stdin
  @native.getStdin().to_io
end

#stdoutObject



29
30
31
# File 'lib/jenkins/launcher.rb', line 29

def stdout
  @native.getStdout().to_io
end