Module: RightScale::RightPopen::InputHandler
- Defined in:
- lib/right_popen/linux/popen3_async.rb
Instance Method Summary collapse
Instance Method Details
#drain_and_close ⇒ Object
125 126 127 |
# File 'lib/right_popen/linux/popen3_async.rb', line 125 def drain_and_close close_connection end |
#initialize(file_handle, string) ⇒ Object
111 112 113 114 115 116 117 118 |
# File 'lib/right_popen/linux/popen3_async.rb', line 111 def initialize(file_handle, string) # Voodoo to make sure that Ruby doesn't gc the file handle # (closing the stream) before we're done with it. No, oddly # enough EventMachine is not good about holding on to this # itself. @handle = file_handle @string = string end |
#post_init ⇒ Object
120 121 122 123 |
# File 'lib/right_popen/linux/popen3_async.rb', line 120 def post_init send_data(@string) if @string close_connection_after_writing end |