instance method
quietly
Ruby on Rails 4.2.9
Since v3.1.12 Last seen in v4.2.9Signature
quietly()
Silences both STDOUT and STDERR, even for subprocesses.
quietly { system 'bundle install' }
This method is not thread-safe.
Source
# File activesupport/lib/active_support/core_ext/kernel/reporting.rb, line 115
def quietly
ActiveSupport::Deprecation.warn(
"`#quietly` is deprecated and will be removed in the next release."
) #not thread-safe
silence_stream(STDOUT) do
silence_stream(STDERR) do
yield
end
end
end
Defined in activesupport/lib/active_support/core_ext/kernel/reporting.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Kernel