lib/tocer/cli/actions/insert.rb in tocer-13.3.1 vs lib/tocer/cli/actions/insert.rb in tocer-14.0.0

- old
+ new

@@ -3,23 +3,23 @@ module Tocer module CLI module Actions # Handles the insert action. class Insert - def initialize runner: Runner.new, container: Container + include Tocer::Import[:logger] + + def initialize runner: Runner.new, **dependencies + super(**dependencies) @runner = runner - @container = container end def call configuration runner.call(configuration) { |path| logger.info { " #{path}" } } end private - attr_reader :runner, :container - - def logger = container[__method__] + attr_reader :runner end end end end