Sha256: c81871bacb647f611d551ff793cb82068fd0d5d769791a22144625a6d0f47c21
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 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
7 entries across 7 versions & 1 rubygems