Sha256: c892a904f840208e283b77b18b46946026bf9580466bf9a812d6087a4ce0fa5c
Contents?: true
Size: 540 Bytes
Versions: 39
Compression:
Stored size: 540 Bytes
Contents
# frozen_string_literal: true require "dry/monads" require "refinements/pathnames" module Gemsmith module Tools # Cleans gem artifacts. class Cleaner include Dry::Monads[:result] using Refinements::Pathnames 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
39 entries across 39 versions & 1 rubygems