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

Version Path
bake-toolkit-2.46.0 bin/bakeclean
bake-toolkit-2.45.0 bin/bakeclean
bake-toolkit-2.44.1 bin/bakeclean
bake-toolkit-2.44.0 bin/bakeclean
bake-toolkit-2.43.2 bin/bakeclean
bake-toolkit-2.43.1 bin/bakeclean
bake-toolkit-2.43.0 bin/bakeclean
bake-toolkit-2.42.3 bin/bakeclean
bake-toolkit-2.42.2 bin/bakeclean
bake-toolkit-2.42.1 bin/bakeclean
bake-toolkit-2.42.0 bin/bakeclean
bake-toolkit-2.41.4 bin/bakeclean
bake-toolkit-2.41.3 bin/bakeclean
bake-toolkit-2.41.2 bin/bakeclean
bake-toolkit-2.41.1 bin/bakeclean
bake-toolkit-2.41.0 bin/bakeclean
bake-toolkit-2.40.1 bin/bakeclean
bake-toolkit-2.40.0 bin/bakeclean
bake-toolkit-2.39.1 bin/bakeclean
bake-toolkit-2.39.0 bin/bakeclean