method

sh

ruby latest stable - Class: Bundler::GemHelper

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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