Sha256: 08bf118fa99102ae7db653ed887555987fbdcdeb9ae5dc98282e33669548f3d4

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module Tocer
  module CLI
    module Actions
      # Handles the insert action.
      class Insert
        def initialize runner: Runner.new, container: Container
          @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__]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tocer-13.3.1 lib/tocer/cli/actions/insert.rb
tocer-13.3.0 lib/tocer/cli/actions/insert.rb
tocer-13.2.0 lib/tocer/cli/actions/insert.rb
tocer-13.1.0 lib/tocer/cli/actions/insert.rb