Sha256: 7e25432a10497410fd378ea2199a7f0869ef6ec35662eed8b0f4932fd9a2e576
Contents?: true
Size: 543 Bytes
Versions: 31
Compression:
Stored size: 543 Bytes
Contents
#!/usr/bin/env ruby require 'rake' rakefiles = %w[rakefile Rakefile rakefile.rb Rakefile.rb] if (!rakefiles.any? { |f| File.exist?(f) }) && !ARGV.include?('-f') && !ARGV.include?('--rakefile') require 'tmpdir' require 'fileutils' # syntethize a Rakefile tmpdir = Dir.mktmpdir rakefile = File.join(tmpdir, 'Rakefile') File.open(rakefile, 'w') do |f| f.puts 'require "chake"' end ARGV.unshift << '--rakefile' << rakefile # clenup after finishing at_exit do FileUtils.rm_rf tmpdir end end Rake.application.run
Version data entries
31 entries across 31 versions & 1 rubygems