summaryrefslogtreecommitdiff
path: root/lib/pry/system_command_handler.rb
blob: fcbfeb576cee6f2c0cfee2606d0fce9b21a7b095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class Pry
  # @api private
  # @since ?.?.?
  module SystemCommandHandler
    class << self
      def default(output, command, _pry_instance)
        return if Kernel.system(command)

        output.puts(
          "Error: there was a problem executing system command: #{command}"
        )
      end
    end
  end
end