Установлен проверка GEM в GEM

if `gem list lunchy -i`; then 
  echo "Lunchy gem is installed!"; 
  # do some configuration here
fi
Crazy Chicken