Class: Microsandbox::LogStream
- Inherits:
-
Object
- Object
- Microsandbox::LogStream
- Includes:
- Enumerable
- Defined in:
- lib/microsandbox/streams.rb
Overview
A live stream of LogEntrys, returned by Sandbox#log_stream. Enumerable: iterate to consume entries as they are appended. With ‘follow: true` the iteration blocks for new entries until the sandbox stops; otherwise it ends once the historical log is drained.
Instance Method Summary collapse
- #each {|entry| ... } ⇒ self, Enumerator
-
#initialize(native) ⇒ LogStream
constructor
A new instance of LogStream.
Constructor Details
#initialize(native) ⇒ LogStream
Returns a new instance of LogStream.
14 15 16 |
# File 'lib/microsandbox/streams.rb', line 14 def initialize(native) @native = native end |