method
sh
v2_6_3 -
Show latest stable
- Class:
Bundler::GemHelper
sh(cmd, &block)protected
No documentation available.
# File lib/bundler/gem_helper.rb, line 174
def sh(cmd, &block)
out, code = sh_with_code(cmd, &block)
unless code.zero?
raise(out.empty? ? "Running `#{cmd}` failed. Run this command directly for more detailed output." : out)
end
out
end