sh without rake

Just built this little sh script, that can be used when rake is not installed (we use it to setup a new/clean system)

def sh(cmd)
  puts cmd
  IO.popen(cmd) do |pipe|
    while str = pipe.gets
      puts str
    end
  end
  $?.success?
end

Leave a comment