Sha256: 13a1e82ae6cf7d3b1f520d545afb9b11b1358f5fb004aa82a05e2a9dde589a6c
Contents?: true
Size: 538 Bytes
Versions: 21
Compression:
Stored size: 538 Bytes
Contents
# frozen_string_literal: true require "dry/monads" require "refinements/pathname" module Gemsmith module Tools # Cleans gem artifacts. class Cleaner include Dry::Monads[:result] using Refinements::Pathname def initialize root_dir: Pathname.pwd @root_dir = root_dir end def call specification root_dir.join("pkg").remove_tree root_dir.files("**/*.gem").each(&:delete) Success specification end private attr_reader :root_dir end end end
Version data entries
21 entries across 21 versions & 1 rubygems