Module: Contentful::Bootstrap::Support
- Included in:
- Commands::Base
- Defined in:
- lib/contentful/bootstrap/support.rb
Instance Method Summary collapse
Instance Method Details
#silence_stderr ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/contentful/bootstrap/support.rb', line 6 def silence_stderr old_stderr = $stderr $stderr = StringIO.new yield ensure $stderr = old_stderr end |