summaryrefslogtreecommitdiff
path: root/lib/pry/system_command_handler.rb
blob: fa059e8bef01eadb00a31243ed6d0ab89cc64f4d (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 v0.13.0
  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