Commit abcfe041 authored by Olivier Halligon's avatar Olivier Halligon

Fixing Rakefile exception cases

parent f43e428e
...@@ -27,9 +27,11 @@ task :bootstrap, :use_bundle_dir? do |t, args| ...@@ -27,9 +27,11 @@ task :bootstrap, :use_bundle_dir? do |t, args|
execute_command "env XCODEPROJ_BUILD=1 bundle install" execute_command "env XCODEPROJ_BUILD=1 bundle install"
end end
else else
$stderr.puts red("[!] Please install the bundler gem manually:\n" \ $stderr.puts "\033[0;31m" \
' $ [sudo] gem install bundler') "[!] Please install the bundler gem manually:\n" \
exit 1 ' $ [sudo] gem install bundler' \
"\e[0m"
exit 1
end end
end end
...@@ -250,8 +252,10 @@ begin ...@@ -250,8 +252,10 @@ begin
task :default => :spec task :default => :spec
rescue LoadError rescue LoadError
$stderr.puts red('[!] Some Rake tasks haven been disabled because the ' \ $stderr.puts "\033[0;31m" \
'environment couldn’t be loaded. Be sure to run `rake bootstrap` first.') '[!] Some Rake tasks haven been disabled because the environment' \
' couldn’t be loaded. Be sure to run `rake bootstrap` first.' \
"\e[0m"
end end
# Helpers # Helpers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment