Sha256: 4c3c64bf3d8ebe509e8c2eaf7844e081d38898dfa7d45225fdb4f12e550cac77

Contents?: true

Size: 591 Bytes

Versions: 3

Compression:

Stored size: 591 Bytes

Contents

require 'fileutils'

##
# Task group used to remove various files that aren't needed when releasing gems and such.
#
# @author Yorick Peterse
# @since  0.2.5
#
namespace :clean do
  desc 'Removes all the gems located in pkg/'
  task :gem do
    glob_pattern = File.expand_path('../../../../pkg/*.gem', __FILE__)

    Dir.glob(glob_pattern).each do |gem|
      File.unlink(gem)
    end
  end

  desc 'Removes all YARD files'
  task :yard do
    zen_path = File.expand_path('../../../../', __FILE__)

    FileUtils.rm_rf("#{zen_path}/doc")
    FileUtils.rm_rf("#{zen_path}/.yardoc")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zen-0.2.7 lib/zen/task/clean.rake
zen-0.2.6.1 lib/zen/task/clean.rake
zen-0.2.6 lib/zen/task/clean.rake