Module: BlueShell
- Defined in:
- lib/blue-shell.rb,
lib/blue-shell/errors.rb,
lib/blue-shell/runner.rb,
lib/blue-shell/version.rb,
lib/blue-shell/matchers.rb,
lib/blue-shell/matchers/output_matcher.rb,
lib/blue-shell/buffered_reader_expector.rb,
lib/blue-shell/matchers/exit_code_matcher.rb
Defined Under Namespace
Modules: Errors, Matchers Classes: BufferedReaderExpector, Runner
Constant Summary collapse
- VERSION =
"0.3.0".freeze
Class Attribute Summary collapse
-
.timeout ⇒ Object
Returns the value of attribute timeout.
Class Method Summary collapse
Class Attribute Details
.timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/blue-shell.rb', line 3 def timeout @timeout end |
Class Method Details
.with_timeout(timeout) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/blue-shell.rb', line 5 def with_timeout(timeout) old_timeout = self.timeout self.timeout = timeout yield ensure self.timeout = old_timeout end |