Sha256: 9ecebd022af28ee7f837d394a2a9632deea4c2f901290e3b5a913d376b4f040a
Contents?: true
Size: 640 Bytes
Versions: 68
Compression:
Stored size: 640 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__)+"/../lib") require "bakeclean/options/options" require "fileutils" $options = Bake::BakecleanOptions.new(ARGV) $options.parse_options() def remove(folder) if File.exist?folder puts folder FileUtils.rm_rf(folder) unless $options.preview end end puts $options.preview ? "*** Preview ***" : "*** Deleting ***" bakes = Dir.glob("**/.bake") bakes.each do |b| remove(b) projectDir = File.dirname(b) remove(projectDir+"/build") builds = Dir.glob(projectDir + "/build_*") builds.each do |build| remove(build) end end exit(0)
Version data entries
68 entries across 68 versions & 1 rubygems