Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ruby /
irb /
Delete
Unzip
Name
Size
Permission
Date
Action
cmd
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
command
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
debug
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
ext
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
helper_method
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
lc
[ DIR ]
drwxr-xr-x
2026-05-05 23:08
color.rb
9.18
KB
-rw-r--r--
2026-04-07 16:51
color_printer.rb
1.29
KB
-rw-r--r--
2026-04-07 16:51
command.rb
484
B
-rw-r--r--
2026-04-07 16:51
completion.rb
14.6
KB
-rw-r--r--
2026-04-07 16:51
context.rb
21.61
KB
-rw-r--r--
2026-04-07 16:51
debug.rb
4.47
KB
-rw-r--r--
2026-04-07 16:51
default_commands.rb
7.98
KB
-rw-r--r--
2026-04-07 16:51
easter-egg.rb
4.19
KB
-rw-r--r--
2026-04-07 16:51
frame.rb
1.92
KB
-rw-r--r--
2026-04-07 16:51
help.rb
612
B
-rw-r--r--
2026-04-07 16:51
helper_method.rb
657
B
-rw-r--r--
2026-04-07 16:51
history.rb
3.15
KB
-rw-r--r--
2026-04-07 16:51
init.rb
14.64
KB
-rw-r--r--
2026-04-07 16:51
input-method.rb
14.04
KB
-rw-r--r--
2026-04-07 16:51
inspector.rb
3.99
KB
-rw-r--r--
2026-04-07 16:51
locale.rb
3.96
KB
-rw-r--r--
2026-04-07 16:51
nesting_parser.rb
8.69
KB
-rw-r--r--
2026-04-07 16:51
notifier.rb
7.18
KB
-rw-r--r--
2026-04-07 16:51
output-method.rb
2.24
KB
-rw-r--r--
2026-04-07 16:51
pager.rb
2.82
KB
-rw-r--r--
2026-04-07 16:51
ruby-lex.rb
15.94
KB
-rw-r--r--
2026-04-07 16:51
ruby_logo.aa
9.39
KB
-rw-r--r--
2026-04-07 16:51
source_finder.rb
4.22
KB
-rw-r--r--
2026-04-07 16:51
statement.rb
1.4
KB
-rw-r--r--
2026-04-07 16:51
version.rb
239
B
-rw-r--r--
2026-04-07 16:51
workspace.rb
5.37
KB
-rw-r--r--
2026-04-07 16:51
ws-for-case-2.rb
160
B
-rw-r--r--
2026-04-07 16:51
xmp.rb
3.99
KB
-rw-r--r--
2026-04-07 16:51
Save
Rename
# frozen_string_literal: true require_relative "command" require_relative "command/internal_helpers" require_relative "command/backtrace" require_relative "command/break" require_relative "command/catch" require_relative "command/cd" require_relative "command/chws" require_relative "command/context" require_relative "command/continue" require_relative "command/debug" require_relative "command/delete" require_relative "command/disable_irb" require_relative "command/edit" require_relative "command/exit" require_relative "command/finish" require_relative "command/force_exit" require_relative "command/help" require_relative "command/history" require_relative "command/info" require_relative "command/irb_info" require_relative "command/load" require_relative "command/ls" require_relative "command/measure" require_relative "command/next" require_relative "command/pushws" require_relative "command/show_doc" require_relative "command/show_source" require_relative "command/step" require_relative "command/subirb" require_relative "command/whereami" module IRB module Command NO_OVERRIDE = 0 OVERRIDE_PRIVATE_ONLY = 0x01 OVERRIDE_ALL = 0x02 class << self # This API is for IRB's internal use only and may change at any time. # Please do NOT use it. def _register_with_aliases(name, command_class, *aliases) @commands[name.to_sym] = [command_class, aliases] end def all_commands_info user_aliases = IRB.CurrentContext.command_aliases.each_with_object({}) do |(alias_name, target), result| result[target] ||= [] result[target] << alias_name end commands.map do |command_name, (command_class, aliases)| aliases = aliases.map { |a| a.first } if additional_aliases = user_aliases[command_name] aliases += additional_aliases end display_name = aliases.shift || command_name { display_name: display_name, description: command_class.description, category: command_class.category } end end def command_override_policies @@command_override_policies ||= commands.flat_map do |cmd_name, (cmd_class, aliases)| [[cmd_name, OVERRIDE_ALL]] + aliases end.to_h end def execute_as_command?(name, public_method:, private_method:) case command_override_policies[name] when OVERRIDE_ALL true when OVERRIDE_PRIVATE_ONLY !public_method when NO_OVERRIDE !public_method && !private_method end end def command_names command_override_policies.keys.map(&:to_s) end # Convert a command name to its implementation class if such command exists def load_command(command) command = command.to_sym commands.each do |command_name, (command_class, aliases)| if command_name == command || aliases.any? { |alias_name, _| alias_name == command } return command_class end end nil end end _register_with_aliases(:irb_context, Command::Context, [:context, NO_OVERRIDE] ) _register_with_aliases(:irb_exit, Command::Exit, [:exit, OVERRIDE_PRIVATE_ONLY], [:quit, OVERRIDE_PRIVATE_ONLY], [:irb_quit, OVERRIDE_PRIVATE_ONLY] ) _register_with_aliases(:irb_exit!, Command::ForceExit, [:exit!, OVERRIDE_PRIVATE_ONLY] ) _register_with_aliases(:irb_current_working_workspace, Command::CurrentWorkingWorkspace, [:cwws, NO_OVERRIDE], [:pwws, NO_OVERRIDE], [:irb_print_working_workspace, OVERRIDE_ALL], [:irb_cwws, OVERRIDE_ALL], [:irb_pwws, OVERRIDE_ALL], [:irb_current_working_binding, OVERRIDE_ALL], [:irb_print_working_binding, OVERRIDE_ALL], [:irb_cwb, OVERRIDE_ALL], [:irb_pwb, OVERRIDE_ALL], ) _register_with_aliases(:irb_change_workspace, Command::ChangeWorkspace, [:chws, NO_OVERRIDE], [:cws, NO_OVERRIDE], [:irb_chws, OVERRIDE_ALL], [:irb_cws, OVERRIDE_ALL], [:irb_change_binding, OVERRIDE_ALL], [:irb_cb, OVERRIDE_ALL], [:cb, NO_OVERRIDE], ) _register_with_aliases(:irb_workspaces, Command::Workspaces, [:workspaces, NO_OVERRIDE], [:irb_bindings, OVERRIDE_ALL], [:bindings, NO_OVERRIDE], ) _register_with_aliases(:irb_push_workspace, Command::PushWorkspace, [:pushws, NO_OVERRIDE], [:irb_pushws, OVERRIDE_ALL], [:irb_push_binding, OVERRIDE_ALL], [:irb_pushb, OVERRIDE_ALL], [:pushb, NO_OVERRIDE], ) _register_with_aliases(:irb_pop_workspace, Command::PopWorkspace, [:popws, NO_OVERRIDE], [:irb_popws, OVERRIDE_ALL], [:irb_pop_binding, OVERRIDE_ALL], [:irb_popb, OVERRIDE_ALL], [:popb, NO_OVERRIDE], ) _register_with_aliases(:irb_load, Command::Load) _register_with_aliases(:irb_require, Command::Require) _register_with_aliases(:irb_source, Command::Source, [:source, NO_OVERRIDE] ) _register_with_aliases(:irb, Command::IrbCommand) _register_with_aliases(:irb_jobs, Command::Jobs, [:jobs, NO_OVERRIDE] ) _register_with_aliases(:irb_fg, Command::Foreground, [:fg, NO_OVERRIDE] ) _register_with_aliases(:irb_kill, Command::Kill, [:kill, OVERRIDE_PRIVATE_ONLY] ) _register_with_aliases(:irb_debug, Command::Debug, [:debug, NO_OVERRIDE] ) _register_with_aliases(:irb_edit, Command::Edit, [:edit, NO_OVERRIDE] ) _register_with_aliases(:irb_break, Command::Break, [:break, OVERRIDE_ALL] ) _register_with_aliases(:irb_catch, Command::Catch, [:catch, OVERRIDE_PRIVATE_ONLY] ) _register_with_aliases(:irb_next, Command::Next, [:next, OVERRIDE_ALL] ) _register_with_aliases(:irb_delete, Command::Delete, [:delete, NO_OVERRIDE] ) _register_with_aliases(:irb_step, Command::Step, [:step, NO_OVERRIDE] ) _register_with_aliases(:irb_continue, Command::Continue, [:continue, NO_OVERRIDE] ) _register_with_aliases(:irb_finish, Command::Finish, [:finish, NO_OVERRIDE] ) _register_with_aliases(:irb_backtrace, Command::Backtrace, [:backtrace, NO_OVERRIDE], [:bt, NO_OVERRIDE] ) _register_with_aliases(:irb_debug_info, Command::Info, [:info, NO_OVERRIDE] ) _register_with_aliases(:irb_help, Command::Help, [:help, NO_OVERRIDE], [:show_cmds, NO_OVERRIDE] ) _register_with_aliases(:irb_show_doc, Command::ShowDoc, [:show_doc, NO_OVERRIDE] ) _register_with_aliases(:irb_info, Command::IrbInfo) _register_with_aliases(:irb_ls, Command::Ls, [:ls, NO_OVERRIDE] ) _register_with_aliases(:irb_measure, Command::Measure, [:measure, NO_OVERRIDE] ) _register_with_aliases(:irb_show_source, Command::ShowSource, [:show_source, NO_OVERRIDE] ) _register_with_aliases(:irb_whereami, Command::Whereami, [:whereami, NO_OVERRIDE] ) _register_with_aliases(:irb_history, Command::History, [:history, NO_OVERRIDE], [:hist, NO_OVERRIDE] ) _register_with_aliases(:irb_disable_irb, Command::DisableIrb, [:disable_irb, NO_OVERRIDE] ) register(:cd, Command::CD) end ExtendCommand = Command # For backward compatibility, we need to keep this module: # - As a container of helper methods # - As a place to register commands with the deprecated def_extend_command method module ExtendCommandBundle # For backward compatibility NO_OVERRIDE = Command::NO_OVERRIDE OVERRIDE_PRIVATE_ONLY = Command::OVERRIDE_PRIVATE_ONLY OVERRIDE_ALL = Command::OVERRIDE_ALL # Deprecated. Doesn't have any effect. @EXTEND_COMMANDS = [] class << self # Drepcated. Use Command.regiser instead. def def_extend_command(cmd_name, cmd_class, _, *aliases) Command._register_with_aliases(cmd_name, cmd_class, *aliases) Command.class_variable_set(:@@command_override_policies, nil) end end end end