Class: Pry::Shell
- Inherits:
-
Object
show all
- Defined in:
- lib/pry/shell.rb,
lib/pry/shell/ui.rb,
lib/pry/shell/cli.rb,
lib/pry/shell/repl.rb,
lib/pry/shell/client.rb,
lib/pry/shell/logger.rb,
lib/pry/shell/server.rb,
lib/pry/shell/command.rb,
lib/pry/shell/io/base.rb,
lib/pry/shell/session.rb,
lib/pry/shell/ui/base.rb,
lib/pry/shell/ui/list.rb,
lib/pry/shell/ui/menu.rb,
lib/pry/shell/version.rb,
lib/pry/shell/io/input.rb,
lib/pry/shell/io/pager.rb,
lib/pry/shell/registry.rb,
lib/pry/shell/ui/about.rb,
lib/pry/shell/io/editor.rb,
lib/pry/shell/io/output.rb,
lib/pry/shell/ui/session.rb,
lib/pry/shell/configuration.rb,
lib/pry/shell/patches/pager.rb,
lib/pry/shell/patches/object.rb,
lib/pry/shell/ui/configuration.rb,
lib/pry/shell/patches/rack_timeout.rb,
lib/pry/shell/ui/configuration/auto_connect.rb
Defined Under Namespace
Modules: IO, Patches
Classes: CLI, Client, Command, Configuration, Logger, Registry, Repl, Server, Session, UI
Constant Summary
collapse
- DEFAULT_HOST =
"localhost"
- DEFAULT_PORT =
"1881"
- VERSION =
"0.6.4"
Class Method Summary
collapse
Class Method Details
.active_shell_options(thread: Thread.current) ⇒ Object
38
39
40
|
# File 'lib/pry/shell.rb', line 38
def active_shell_options(thread: Thread.current)
thread[:active_shell_options]
end
|
.active_shell_options=(value) ⇒ Object
42
43
44
|
# File 'lib/pry/shell.rb', line 42
def active_shell_options=(value)
Thread.current[:active_shell_options] = value
end
|
.clear_shell_options! ⇒ Object
46
47
48
|
# File 'lib/pry/shell.rb', line 46
def clear_shell_options!
self.active_shell_options = nil
end
|
.configuration ⇒ Object
54
55
56
|
# File 'lib/pry/shell.rb', line 54
def configuration
@configuration ||= Configuration.new
end
|
.registry ⇒ Object
58
59
60
|
# File 'lib/pry/shell.rb', line 58
def registry
@registry ||= Registry.new
end
|
.remove_active_connection! ⇒ Object
50
51
52
|
# File 'lib/pry/shell.rb', line 50
def remove_active_connection!
active_shell_options&.fetch(:remove_connection)&.call
end
|
.run ⇒ Object
31
32
33
34
35
36
|
# File 'lib/pry/shell.rb', line 31
def run
run_server
draw_ui
rescue TTY::Reader::InputInterrupt, Interrupt
exit
end
|