class Pod::Cmmd

Public Class Methods

sh!(command) click to toggle source
# File lib/cocoapods-framework/util/cmd.rb, line 4
def sh! command
  UI.puts command
  output = `#{command}`.lines.to_a
  if $?.exitstatus != 0
    Pod::ErrorUtil.error_report command,output
    Process.exit -1
  end
  output
end
sh?(command) click to toggle source
# File lib/cocoapods-framework/util/cmd.rb, line 14
def sh? command
  UI.puts command
  output = `#{command}`.lines.to_a
  if $?.exitstatus != 0
    Pod::ErrorUtil.error_report command,output
  end
  output
end