Sha256: ac7af92c4acd78fa42b751e9358ef809d61be2a110789825c2e8325e953c632d
Contents?: true
Size: 850 Bytes
Versions: 46
Compression:
Stored size: 850 Bytes
Contents
require "librarian/action/base" module Librarian module Action class Clean < Base def run clean_cache_path clean_install_path end private def clean_cache_path if cache_path.exist? debug { "Deleting #{project_relative_path_to(cache_path)}" } cache_path.rmtree end end def clean_install_path if install_path.exist? install_path.children.each do |c| debug { "Deleting #{project_relative_path_to(c)}" } c.rmtree unless c.file? end end end def cache_path environment.cache_path end def install_path environment.install_path end def project_relative_path_to(path) environment.project_relative_path_to(path) end end end end
Version data entries
46 entries across 46 versions & 5 rubygems