demarches-normaliennes/bin/rake
Pierre de La Morinerie ae5754e6c6 spring: add Spring to binstubs of default commands
Binstubs generated with `bundle exec spring binstub --all`.

This allows to type `bin/rails`, `bin/rake` or `bin/rspec` and have it
using Spring (rather than `bin/spring rails`).

On my machine it produces a nice speedup:

- `rake -T`: 5.6s
- `bin/rake -T`: 0.25s

The startup speedup for `rails` and `rspec` is similar.
2018-06-20 10:31:15 +02:00

9 lines
213 B
Ruby
Executable file

#!/usr/bin/env ruby
begin
load File.expand_path('../spring', __FILE__)
rescue LoadError => e
raise unless e.message.include?('spring')
end
require_relative '../config/boot'
require 'rake'
Rake.application.run