File: rake.rb

package info (click to toggle)
ruby-bootsnap 1.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 520 kB
  • sloc: ruby: 3,637; ansic: 844; sh: 14; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

require "bootsnap"
require "rake/clean"

# Typically, should have been set up prior to requiring rake integration.
# But allow for a streamlined ::default_setup
require "bootsnap/setup" if Bootsnap.cache_dir.nil?

if Bootsnap.cache_dir
  CLEAN.include Bootsnap.cache_dir
else
  abort "Bootsnap must be set-up prior to rake integration"
end