Sha256: f9e187b48649553917347c8c753b0661461d7234dd78a1c0ab0e6b40fd68e907
Contents?: true
Size: 628 Bytes
Versions: 6
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true require 'rake_factory' require 'logger' require_relative '../null_logger' module RakeDependencies module Tasks class Clean < RakeFactory::Task default_name :clean default_description(RakeFactory::DynamicValue.new do |t| "Clean vendored #{t.dependency}" end) parameter :dependency, required: true parameter :path, required: true parameter :logger, default: NullLogger.new action do |t| logger.info("Cleaning '#{dependency}' at path: '#{path}'...") rm_rf t.path logger.info('Cleaned.') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems