namespace :jumpup do

desc "Generate and commit the project .stats file"
task :stats do
  puts "--> Generating .stats file"
  File.open('.stats', 'w') { |file| file.write(`bundle exec rake stats`) }

  puts "--> Commiting .stats file"
  system "git add .stats"
  system "git commit -m 'Update stats. #{Time.now.utc.to_s}'"
end

end