Sha256: 9409987a9696fb5523185a2a1a9d889895ac72d8e36d693ebe7b812b8bd3734d
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
class Lono::Bundler::CLI class Clean < Base include LB::Component::Concerns::PathConcern def run paths = [tmp_root] are_you_sure?(paths) paths.each do |path| FileUtils.rm_rf(path) logger.info "Removed #{path}" end end def are_you_sure?(paths) pretty_paths = paths.map { |p| " #{p}" }.join("\n") message = <<~EOL.chomp Will remove these folders and all their files: #{pretty_paths} Are you sure? EOL sure?(message) # from Util::Sure end end end
Version data entries
6 entries across 6 versions & 1 rubygems