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

Version Path
bake-toolkit-2.72.0 bin/bakeclean
bake-toolkit-2.71.0 bin/bakeclean
bake-toolkit-2.70.1 bin/bakeclean
bake-toolkit-2.70.0 bin/bakeclean
bake-toolkit-2.69.0 bin/bakeclean
bake-toolkit-2.68.1 bin/bakeclean
bake-toolkit-2.68.0 bin/bakeclean
bake-toolkit-2.67.0 bin/bakeclean
bake-toolkit-2.66.0 bin/bakeclean
bake-toolkit-2.65.2 bin/bakeclean
bake-toolkit-2.65.1 bin/bakeclean
bake-toolkit-2.65.0 bin/bakeclean
bake-toolkit-2.64.4 bin/bakeclean
bake-toolkit-2.64.3 bin/bakeclean
bake-toolkit-2.64.2 bin/bakeclean
bake-toolkit-2.64.1 bin/bakeclean
bake-toolkit-2.64.0 bin/bakeclean
bake-toolkit-2.63.2 bin/bakeclean
bake-toolkit-2.63.1 bin/bakeclean
bake-toolkit-2.63.0 bin/bakeclean