Sha256: da1afed120c509a25a8336ae70b7bd32d8a45173b631fe2969679979a774af3d

Contents?: true

Size: 479 Bytes

Versions: 9

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

module Pragmater
  module CLI
    module Actions
      # Handles insert or remove actions.
      class Run
        include Pragmater::Import[:logger]

        def initialize runner: Runner.new, **dependencies
          super(**dependencies)
          @runner = runner
        end

        def call(configuration) = runner.call(configuration) { |path| logger.info { path } }

        private

        attr_reader :runner
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pragmater-12.1.0 lib/pragmater/cli/actions/run.rb
pragmater-12.0.0 lib/pragmater/cli/actions/run.rb
pragmater-11.5.0 lib/pragmater/cli/actions/run.rb
pragmater-11.4.0 lib/pragmater/cli/actions/run.rb
pragmater-11.3.0 lib/pragmater/cli/actions/run.rb
pragmater-11.2.0 lib/pragmater/cli/actions/run.rb
pragmater-11.1.0 lib/pragmater/cli/actions/run.rb
pragmater-11.0.1 lib/pragmater/cli/actions/run.rb
pragmater-11.0.0 lib/pragmater/cli/actions/run.rb