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|
execute_command "env XCODEPROJ_BUILD=1 bundle install"
end
else
$stderr.puts red("[!] Please install the bundler gem manually:\n" \
' $ [sudo] gem install bundler')
exit 1
$stderr.puts "\033[0;31m" \
"[!] Please install the bundler gem manually:\n" \
' $ [sudo] gem install bundler' \
"\e[0m"
exit 1
end
end
......@@ -250,8 +252,10 @@ begin
task :default => :spec
rescue LoadError
$stderr.puts red('[!] Some Rake tasks haven been disabled because the ' \
'environment couldn’t be loaded. Be sure to run `rake bootstrap` first.')
$stderr.puts "\033[0;31m" \
'[!] Some Rake tasks haven been disabled because the environment' \
' couldn’t be loaded. Be sure to run `rake bootstrap` first.' \
"\e[0m"
end
# 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