Class: Jenkins::Launcher::Proc
- Inherits:
-
Object
- Object
- Jenkins::Launcher::Proc
- Defined in:
- lib/jenkins/launcher.rb
Instance Attribute Summary collapse
-
#native ⇒ Object
readonly
Returns the value of attribute native.
Instance Method Summary collapse
- #alive? ⇒ Boolean
-
#initialize(native) ⇒ Proc
constructor
A new instance of Proc.
- #join ⇒ Object
- #kill ⇒ Object
- #stderr ⇒ Object
- #stdin ⇒ Object
- #stdout ⇒ Object
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
#native ⇒ Object (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
12 13 14 |
# File 'lib/jenkins/launcher.rb', line 12 def alive? @native.isAlive() end |
#join ⇒ Object
16 17 18 |
# File 'lib/jenkins/launcher.rb', line 16 def join @native.join() end |
#kill ⇒ Object
20 21 22 23 |
# File 'lib/jenkins/launcher.rb', line 20 def kill @native.kill() nil end |
#stderr ⇒ Object
33 34 35 |
# File 'lib/jenkins/launcher.rb', line 33 def stderr @native.getStderr().to_io end |
#stdin ⇒ Object
25 26 27 |
# File 'lib/jenkins/launcher.rb', line 25 def stdin @native.getStdin().to_io end |
#stdout ⇒ Object
29 30 31 |
# File 'lib/jenkins/launcher.rb', line 29 def stdout @native.getStdout().to_io end |