lib/umwelt/tree/imprint.rb in umwelt-0.1.0 vs lib/umwelt/tree/imprint.rb in umwelt-0.1.1

- old
+ new

@@ -1,12 +1,10 @@ # frozen_string_literal: true module Umwelt::Tree class Imprint include Hanami::Interactor - extend Forwardable - def_delegators FileUtils, :mkpath expose :written_paths def initialize(trunk, location: nil) @trunk = trunk @@ -25,18 +23,18 @@ private def write(semantic) path = semantic.path(location: @location) - mkpath path.dirname + path.dirname.mkpath count = path.write(semantic.code) @written_paths[path] = count end def location_clean? - mkpath imprint_root + imprint_root.mkpath imprint_root.empty? end def not_clean <<~WARN_MESSAGE