Sha256: e8ce5987947ffbf30aad8941b2357682c22120649f338423fcd972991cf95257
Contents?: true
Size: 656 Bytes
Versions: 48
Compression:
Stored size: 656 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__)+"/../lib") require_relative "../lib/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
48 entries across 48 versions & 1 rubygems