class Gemsmith::Tools::Cleaner

Cleans gem artifacts.

Attributes

root_dir[R]

Public Class Methods

new(root_dir: Pathname.pwd) click to toggle source
# File lib/gemsmith/tools/cleaner.rb, line 14
def initialize root_dir: Pathname.pwd
  @root_dir = root_dir
end

Public Instance Methods

call(specification) click to toggle source
# File lib/gemsmith/tools/cleaner.rb, line 18
def call specification
  root_dir.join("pkg").remove_tree
  root_dir.files("**/*.gem").each(&:delete)
  Success specification
end