Class: Pmux::Gatherer
- Inherits:
-
Object
- Object
- Pmux::Gatherer
- Defined in:
- lib/pmux/gatherer.rb
Instance Attribute Summary collapse
-
#mf ⇒ Object
readonly
Returns the value of attribute mf.
-
#writer ⇒ Object
Returns the value of attribute writer.
Instance Method Summary collapse
- #gather(msession, node_addr, remote, local, options = {}) ⇒ Object
-
#initialize(writer = nil) ⇒ Gatherer
constructor
A new instance of Gatherer.
- #join_all ⇒ Object
Constructor Details
Instance Attribute Details
#mf ⇒ Object (readonly)
Returns the value of attribute mf.
4 5 6 |
# File 'lib/pmux/gatherer.rb', line 4 def mf @mf end |
#writer ⇒ Object
Returns the value of attribute writer.
3 4 5 |
# File 'lib/pmux/gatherer.rb', line 3 def writer @writer end |
Instance Method Details
#gather(msession, node_addr, remote, local, options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/pmux/gatherer.rb', line 12 def gather msession, node_addr, remote, local, ={} future = msession.scp_download node_addr, remote, local, :set_result=>local @mf.add future end |
#join_all ⇒ Object
18 19 20 21 |
# File 'lib/pmux/gatherer.rb', line 18 def join_all @mf.join_all @writer.finish end |