Sha256: 9594b26c6577c53d21a4fa3390625e9cac8ffdb92721b92c489527d1ff1ea0e0

Contents?: true

Size: 365 Bytes

Versions: 12

Compression:

Stored size: 365 Bytes

Contents

require "eddy"
require "fileutils"

namespace :misc do
  desc "Clean up temporary folders in project root"
  task :clean do
    dirs = [
      "build",
      "coverage",
      "doc",
      "tmp",
      ".yardoc",
    ].each do |dir|
      path = File.join(Eddy::Util.root_dir, dir)
      if File.exist?(path)
        FileUtils.rm_r(dir)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eddy-0.10.0 tasks/misc/clean.rake
eddy-0.9.2 tasks/misc/clean.rake
eddy-0.9.1 tasks/misc/clean.rake
eddy-0.9.0 tasks/misc/clean.rake
eddy-0.8.4 tasks/misc/clean.rake
eddy-0.8.3 tasks/misc/clean.rake
eddy-0.8.2 tasks/misc/clean.rake
eddy-0.8.1 tasks/misc/clean.rake
eddy-0.8.0 tasks/misc/clean.rake
eddy-0.7.0 tasks/misc/clean.rake
eddy-0.6.0 tasks/misc/clean.rake
eddy-0.5.1 tasks/misc/clean.rake