Module: Pry::SystemCommandHandler Private

Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/system_command_handler.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • v0.13.0

Class Method Summary collapse

Class Method Details

.default(output, command, _pry_instance) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • v0.13.0



8
9
10
11
12
13
14
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/system_command_handler.rb', line 8

def default(output, command, _pry_instance)
  return if Kernel.system(command)

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