Sha256: 60953a47f2e417af2d75c78d7841af4b6154c3e73bab08b19202a83797779005

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

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

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

        def call(configuration) = runner.call(configuration) { |path| kernel.puts path }

        private

        attr_reader :runner
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pragmater-12.2.0 lib/pragmater/cli/actions/run.rb