This change removes the assumption that Rake is available at the time
of installation and only uses "find" to remove bundler settings.

  Users can use vcap_dev_setup -a to skip the prompt (DANGEROUS)

Change-Id: Ibbf62b739452abc47709d5cb84e9b620ae1e5b1b
This commit is contained in:
Jesse Zhang 2012-04-17 11:09:46 -07:00
Родитель 3de85f2704
Коммит 031019654f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -91,7 +91,7 @@ function clear_bundler_settings () {
read -p "Remembered Bundler options could cause you troubles, do you want me to clear them for you? [Y/n]"
[[ $REPLY =~ ^[nN] ]] && return 0
fi
(cd $CLOUDFOUNDRY_HOME/vcap && rake bundler:reset || find -type d -name .bundle -prune -exec rm -r {} \; )
(cd $CLOUDFOUNDRY_HOME/vcap && find -type d -name .bundle -prune -exec rm -r {} \; )
}
# Check if we have access to the web