Class: Roebe::Shell
- Includes:
- Time
- Defined in:
- lib/roebe/shell/help/help.rb,
lib/roebe/shell/shell/menu.rb,
lib/roebe/shell/shell/misc.rb,
lib/roebe/shell/shell/reset.rb,
lib/roebe/shell/shell/shell.rb,
lib/roebe/shell/shell/core/e.rb,
lib/roebe/shell/shell/core/is.rb,
lib/roebe/shell/shell/core/add.rb,
lib/roebe/shell/shell/core/all.rb,
lib/roebe/shell/shell/core/cat.rb,
lib/roebe/shell/shell/core/cut.rb,
lib/roebe/shell/shell/core/env.rb,
lib/roebe/shell/shell/core/ftp.rb,
lib/roebe/shell/shell/core/irb.rb,
lib/roebe/shell/shell/core/irc.rb,
lib/roebe/shell/shell/core/iso.rb,
lib/roebe/shell/shell/core/log.rb,
lib/roebe/shell/shell/core/pdf.rb,
lib/roebe/shell/shell/core/pid.rb,
lib/roebe/shell/shell/core/rbt.rb,
lib/roebe/shell/shell/core/scp.rb,
lib/roebe/shell/shell/core/set.rb,
lib/roebe/shell/shell/core/tab.rb,
lib/roebe/shell/shell/core/url.rb,
lib/roebe/shell/shell/core/use.rb,
lib/roebe/shell/colours/colours.rb,
lib/roebe/shell/project/project.rb,
lib/roebe/shell/session/session.rb,
lib/roebe/shell/shell/constants.rb,
lib/roebe/shell/shell/core/call.rb,
lib/roebe/shell/shell/core/copy.rb,
lib/roebe/shell/shell/core/dump.rb,
lib/roebe/shell/shell/core/exit.rb,
lib/roebe/shell/shell/core/gems.rb,
lib/roebe/shell/shell/core/gist.rb,
lib/roebe/shell/shell/core/glob.rb,
lib/roebe/shell/shell/core/help.rb,
lib/roebe/shell/shell/core/make.rb,
lib/roebe/shell/shell/core/misc.rb,
lib/roebe/shell/shell/core/mode.rb,
lib/roebe/shell/shell/core/move.rb,
lib/roebe/shell/shell/core/open.rb,
lib/roebe/shell/shell/core/path.rb,
lib/roebe/shell/shell/core/ping.rb,
lib/roebe/shell/shell/core/play.rb,
lib/roebe/shell/shell/core/ruby.rb,
lib/roebe/shell/shell/core/save.rb,
lib/roebe/shell/shell/core/sort.rb,
lib/roebe/shell/shell/core/stat.rb,
lib/roebe/shell/shell/core/test.rb,
lib/roebe/shell/shell/core/time.rb,
lib/roebe/shell/shell/core/undo.rb,
lib/roebe/shell/shell/core/wlan.rb,
lib/roebe/shell/shell/core/yaml.rb,
lib/roebe/shell/shell/core/ascii.rb,
lib/roebe/shell/shell/core/audio.rb,
lib/roebe/shell/shell/core/chmod.rb,
lib/roebe/shell/shell/core/count.rb,
lib/roebe/shell/shell/core/debug.rb,
lib/roebe/shell/shell/core/delay.rb,
lib/roebe/shell/shell/core/email.rb,
lib/roebe/shell/shell/core/empty.rb,
lib/roebe/shell/shell/core/fetch.rb,
lib/roebe/shell/shell/core/merge.rb,
lib/roebe/shell/shell/core/mount.rb,
lib/roebe/shell/shell/core/phone.rb,
lib/roebe/shell/shell/core/popup.rb,
lib/roebe/shell/shell/core/serve.rb,
lib/roebe/shell/shell/core/sleep.rb,
lib/roebe/shell/shell/core/split.rb,
lib/roebe/shell/shell/core/start.rb,
lib/roebe/shell/shell/core/strip.rb,
lib/roebe/shell/shell/core/tasks.rb,
lib/roebe/shell/shell/core/video.rb,
lib/roebe/shell/shell/core/watch.rb,
lib/roebe/shell/shell/core/action.rb,
lib/roebe/shell/shell/core/append.rb,
lib/roebe/shell/shell/core/assign.rb,
lib/roebe/shell/shell/core/backup.rb,
lib/roebe/shell/shell/core/become.rb,
lib/roebe/shell/shell/core/buffer.rb,
lib/roebe/shell/shell/core/checks.rb,
lib/roebe/shell/shell/core/cliner.rb,
lib/roebe/shell/shell/core/cracks.rb,
lib/roebe/shell/shell/core/create.rb,
lib/roebe/shell/shell/core/editor.rb,
lib/roebe/shell/shell/core/enable.rb,
lib/roebe/shell/shell/core/ensure.rb,
lib/roebe/shell/shell/core/google.rb,
lib/roebe/shell/shell/core/images.rb,
lib/roebe/shell/shell/core/random.rb,
lib/roebe/shell/shell/core/record.rb,
lib/roebe/shell/shell/core/reload.rb,
lib/roebe/shell/shell/core/remove.rb,
lib/roebe/shell/shell/core/repair.rb,
lib/roebe/shell/shell/core/repeat.rb,
lib/roebe/shell/shell/core/replay.rb,
lib/roebe/shell/shell/core/switch.rb,
lib/roebe/shell/shell/core/toggle.rb,
lib/roebe/shell/shell/core/upcase.rb,
lib/roebe/shell/shell/core/update.rb,
lib/roebe/shell/shell/core/upload.rb,
lib/roebe/shell/shell/core/wecker.rb,
lib/roebe/shell/shell/core/whoami.rb,
lib/roebe/shell/module_methods/ftp.rb,
lib/roebe/shell/shell/core/aliases.rb,
lib/roebe/shell/shell/core/browser.rb,
lib/roebe/shell/shell/core/burning.rb,
lib/roebe/shell/shell/core/compile.rb,
lib/roebe/shell/shell/core/disable.rb,
lib/roebe/shell/shell/core/english.rb,
lib/roebe/shell/shell/core/esystem.rb,
lib/roebe/shell/shell/core/extract.rb,
lib/roebe/shell/shell/core/get_var.rb,
lib/roebe/shell/shell/core/history.rb,
lib/roebe/shell/shell/core/install.rb,
lib/roebe/shell/shell/core/jumpers.rb,
lib/roebe/shell/shell/core/protect.rb,
lib/roebe/shell/shell/core/queries.rb,
lib/roebe/shell/shell/core/replace.rb,
lib/roebe/shell/shell/core/require.rb,
lib/roebe/shell/shell/core/symlink.rb,
lib/roebe/shell/shell/core/trainer.rb,
lib/roebe/shell/shell/core/trigger.rb,
lib/roebe/shell/shell/core/unalias.rb,
lib/roebe/shell/shell/core/webrick.rb,
lib/roebe/shell/shell/core/windows.rb,
lib/roebe/shell/module_methods/misc.rb,
lib/roebe/shell/shell/core/archives.rb,
lib/roebe/shell/shell/core/collapse.rb,
lib/roebe/shell/shell/core/defaults.rb,
lib/roebe/shell/shell/core/downcase.rb,
lib/roebe/shell/shell/core/download.rb,
lib/roebe/shell/shell/core/generate.rb,
lib/roebe/shell/shell/core/hardware.rb,
lib/roebe/shell/shell/core/hostname.rb,
lib/roebe/shell/shell/core/optimize.rb,
lib/roebe/shell/shell/core/personal.rb,
lib/roebe/shell/shell/core/printing.rb,
lib/roebe/shell/shell/core/register.rb,
lib/roebe/shell/shell/core/treeview.rb,
lib/roebe/shell/colours/colour_codes.rb,
lib/roebe/shell/shell/core/arguments.rb,
lib/roebe/shell/shell/core/autostart.rb,
lib/roebe/shell/shell/core/birthdays.rb,
lib/roebe/shell/shell/core/calculate.rb,
lib/roebe/shell/shell/core/clipboard.rb,
lib/roebe/shell/shell/core/passwords.rb,
lib/roebe/shell/shell/core/pkgconfig.rb,
lib/roebe/shell/shell/core/read_file.rb,
lib/roebe/shell/shell/core/repackage.rb,
lib/roebe/shell/shell/core/translate.rb,
lib/roebe/shell/shell/core/variables.rb,
lib/roebe/shell/shell/core/screenshot.rb,
lib/roebe/shell/shell/core/conversions.rb,
lib/roebe/shell/shell/core/information.rb,
lib/roebe/shell/commandline/commandline.rb,
lib/roebe/shell/module_methods/encoding.rb,
lib/roebe/shell/shell/core/file_actions.rb,
lib/roebe/shell/shell/core/shellrc_file.rb,
lib/roebe/shell/standalone_classes/todo.rb,
lib/roebe/shell/module_methods/anmeldung.rb,
lib/roebe/shell/module_methods/main_file.rb,
lib/roebe/shell/shell/core/configuration.rb,
lib/roebe/shell/shell/core/documentation.rb,
lib/roebe/shell/help/colourized_help_line.rb,
lib/roebe/shell/module_methods/benchmarks.rb,
lib/roebe/shell/shell/core/clear_and_purge.rb,
lib/roebe/shell/shell/core/find_and_search.rb,
lib/roebe/shell/shell/core/question_answer.rb,
lib/roebe/shell/configuration/configuration.rb,
lib/roebe/shell/gui/gtk3/vte_terminal_frame.rb,
lib/roebe/shell/module_methods/startup_time.rb,
lib/roebe/shell/shell/core/change_directory.rb,
lib/roebe/shell/shell/core/get_file_listing.rb,
lib/roebe/shell/shell/core/set_file_listing.rb,
lib/roebe/shell/help/documented_help_options.rb,
lib/roebe/shell/shell/core/directory_actions.rb,
lib/roebe/shell/module_methods/home_directory.rb,
lib/roebe/shell/shellrc_parser/shellrc_parser.rb,
lib/roebe/shell/shell/core/act_filetype_specific.rb,
lib/roebe/shell/standalone_classes/time_converter.rb,
lib/roebe/shell/shell/core/escape_shell_characters.rb,
lib/roebe/shell/module_methods/available_components.rb,
lib/roebe/shell/module_methods/commandline_arguments.rb,
lib/roebe/shell/module_methods/generate_tab_completion.rb,
lib/roebe/shell/shell/core/show_display_feedback_and_report.rb,
lib/roebe/shell/shell/core/tell_us_whether_this_program_exists.rb,
lib/roebe/shell/module_methods/report_where_the_home_directory_can_be_found.rb
Overview
Roebe::Shell
Defined Under Namespace
Classes: ColourCodes, ColourizedHelpLine, Commandline, Configuration, DocumentedHelpOptions, Session, ShellrcParser, TimeConverter, Todo, VteTerminalFrame
Constant Summary collapse
- ARRAY_VALID_HELP_OPTIONS =
#
Roebe::Shell::ARRAY_VALID_HELP_OPTIONS
#
%w( commandline_help --show_commandline_help --help HELP help )
- ARRAY_FOR_COMPLETION =
#
Roebe::Shell::ARRAY_FOR_COMPLETION
There idea for this constant here is to add some mandatory constants that can be completed via Readline. Evidently this is only useful if readline is available and used on the target computer system at hand.
#
%w( search download open help history quit url next clear ).sort
- RUBY_KEYWORDS =
#
Roebe::Shell::RUBY_KEYWORDS
Collect all ruby keywords here. This depends on the gem keywords.
#
::Roebe.ruby_keywords?
- ROEBE_SHELL_YAML_LOG_DIRECTORY =
#
Roebe::Shell::ROEBE_SHELL_YAML_LOG_DIRECTORY
Here we store the log directory for yaml files.
#
"#{Roebe::Shell.log_directory?}yaml/"
- LAST_COMMANDS =
#
Roebe::Shell::LAST_COMMANDS
Where we store our last commands.
#
"#{ROEBE_SHELL_YAML_LOG_DIRECTORY}last_commands.yml"
- RUBY_ASSUMED_VERSION =
#
RUBY_ASSUMED_VERSION
This is e. g. “2.7.1”. It must come before we define the RI_DIRECTORY constant.
#
RbConfig::CONFIG['MAJOR']+'.'+ RbConfig::CONFIG['MINOR']+'.'+ RbConfig::CONFIG['TEENY']
- RI_DIRECTORY =
#
Roebe::Shell::RI_DIRECTORY
Where ri stores it's docu normally.
#
"#{RbConfig::CONFIG['datarootdir']}/ri/#{RUBY_ASSUMED_VERSION}/system"
- ARRAY_KEYWORD_EXCEPTIONS_FOR_ALL_AS_AN_ARGUMENT =
#
ARRAY_KEYWORD_EXCEPTIONS_FOR_ALL_AS_AN_ARGUMENT
A list of exceptions for when the argument is 'all'.
#
%w( play_song playsong playsongs play rsong )
- ARRAY_ALLOWED_MODES =
#
ARRAY_ALLOWED_MODES
#
%w( browser display edit play )
- AUDIO_FILE_TYPES =
#
AUDIO_FILE_TYPES
#
%w( .mp3 .wav .ogg .mp4 )
- ARRAY_POSSIBLE_CHMOD_VALUES =
#
ARRAY_POSSIBLE_CHMOD_VALUES
All possible chmod-values are registered here.
#
%w( 000 111 110 101 100 011 010 001 333 444 400 555 644 655 777 775 757 755 744 741 714 711 700 )
- ARRAY_POSSIBLE_INSTALL_ACTIONS =
#
ARRAY_POSSIBLE_INSTALL_ACTIONS
List which install actions are allowed in the following Array.
PLEASE KEEP THIS ARRAY ALWAYS UP-TO-DATE!
#
%w( default wlan grub mp3directcut starter_pack nvidia flash windows pdf debian_package )
- ARRAY_WAYS_TO_EXIT =
#
ARRAY_WAYS_TO_EXIT
The following Array keeps track how to exit from the Diamond Shell.
#
%w( q exit quit break bye out exi rdia eit exti rda toq ra da cq eq w qq qu aus ende )
- ARRAY_REGISTERED_ENTRIES_FOR_GENERATE =
#
ARRAY_REGISTERED_ENTRIES_FOR_GENERATE
#
%w( xorg www_colours images keys feedback inputrc spreadsheet )
- ARRAY_AVAILABLE_OPTIONS_FOR_GENERATE =
#
ARRAY_AVAILABLE_OPTIONS_FOR_GENERATE
Next, we gather all options available for generate.
#
%w( xorg rcfiles www_colours image keys feedback inputrc spreadsheet aliases )
- ARRAY_AVAILABLE_DISPLAY_OPTIONS =
#
ARRAY_AVAILABLE_DISPLAY_OPTIONS
#
%w( hardware_information contacts ram video_resolution host_information ).sort
- ARRAY_RUBY_CORE_CONSTANTS =
#
ARRAY_RUBY_CORE_CONSTANTS
As of ruby 2.4, Bignum is no longer a part of ruby.
#
[ String, Hash, Array, BasicObject, Object, Module, Class, Numeric, Integer, Float, Fiber, Dir, File, Encoding, Enumerator ]
- ARRAY_COMMANDS_FOR_THE_ROEBE_SHELL_HISTORY =
#
ARRAY_COMMANDS_FOR_THE_ROEBE_SHELL_HISTORY
#
%w( show_logfile_for_history show_history showhistory handle_history history? history commands? use_command_at_history_position hh hist h? h history_file? hist? )
- HELP_OPTIONS =
#
Roebe::Shell::HELP_OPTIONS
Which help options are valid? Typically these are help, h and ? and a few more. They will be defined in the following Array.
#
%w( HELP ? h help help? elp hel he h? hep show_help_options --help hlep helpoptions? help_options? hoptions? hopt? hop? )
- FILE_HOME_DIR =
#
Roebe::Shell::FILE_HOME_DIR
This is a yaml file but normally it does not exist, on purpose. The user may enable this through a commandline switch.
If this constant is ported then we also have to modify the file called 'home_directory.rb'.
#
"#{::Roebe::Shell.project_base_directory?}configuration/home_dir.yml"
- LOCALHOST =
#
Roebe::Shell::LOCALHOST
The localhost has which URLs?
#
'http://localhost/'
- SITELIBDIR =
#
Roebe::Shell::SITELIBDIR
The Ruby sitelib directory.
#
RbConfig::CONFIG['sitelibdir']
- MSG_PROVIDE_ONE_ARGUMENT =
#
Roebe::Shell::MSG_PROVIDE_ONE_ARGUMENT
#
'Please provide at least one argument.'
- WINDOWS_HOMEDIR =
#
Roebe::Shell::WINDOWS_HOMEDIR
This might also be USERPROFILE variable.
#
"#{ENV['HOMEDRIVE']}/"
- LEFT_ARROW_KEY_AND_ALT_KEY =
#
Roebe::Shell::LEFT_ARROW_KEY_AND_ALT_KEY
#
"\e[1;3D\n"
- TOP_ARROW_KEY_AND_ALT_KEY =
#
Roebe::Shell::TOP_ARROW_KEY_AND_ALT_KEY
#
"\e[1;3A\n"
- RIGHT_ARROW_KEY_AND_ALT_KEY =
#
Roebe::Shell::RIGHT_ARROW_KEY_AND_ALT_KEY
#
"\e[1;3C\n"
- BOTTOM_ARROW_KEY_AND_ALT_KEY =
#
BOTTOM_ARROW_KEY_AND_ALT
#
"\e[1;3B\n"
- ARRAY_ARROW_KEYS =
#
Roebe::Shell::ARRAY_ARROW_KEYS
Collect the arrow-keys into an Array.
#
[ LEFT_ARROW_KEY_AND_ALT_KEY, TOP_ARROW_KEY_AND_ALT_KEY, RIGHT_ARROW_KEY_AND_ALT_KEY, BOTTOM_ARROW_KEY_AND_ALT_KEY ]
- ARRAY_REQUIRE_THESE_PROJECT_INTERNAL_FILES =
#
ARRAY_REQUIRE_THESE_PROJECT_INTERNAL_FILES
Unsure whether we will retain this Array in the long run.
#
%w( act_filetype_specific action add aliases all append archives ascii audio autostart backup become browser buffer calculate initialize cat call change_directory checks chmod clear_and_purge cliner collapse compile conversions count copy cracks create cut defaults delay disable documentation downcase download dump e editor email empty enable ensure esystem exit extract feedback file_actions find_and_search ftp generate get_var hardware help history hostname information install irb irc iso jumpers merge misc mode move mount open optimize passwords pdf personal pid ping play pkgconfig protect queries question_answer random record repackage repair replay require rbt ruby save screenshot serve set show_display_and_report split stat strip switch tab time toggle treeview upcase update upload url use video wecker whoami windows wlan yaml )
- FILE_IGNORE_THESE_LAST_COMMANDS =
#
Roebe::Shell::FILE_IGNORE_THESE_LAST_COMMANDS
This constant may expand to a value such as:
/home/Programs/Ruby/2.7.1/lib/ruby/site_ruby/2.7.0/roebe/shell/yaml/ignore_these_last_commands.yml
#
"#{Roebe::Shell.yaml_directory?}ignore_these_last_commands.yml"
- ROEBE_SHELL_BUFFER_FILE =
#
ROEBE_SHELL_BUFFER_FILE
#
"#{Roebe::Shell.yaml_directory?}configuration/buffer.yml"
- ROEBE_SHELL_DOC_DIRECTORY =
#
Roebe::Shell::ROEBE_SHELL_DOC_DIRECTORY
#
"#{HOME_OF_THE_USER_CALLED_X}programming/ruby/src/roebe/doc/"
- ROEBE_SHELL_TODO_FILE =
#
Roebe::Shell::ROEBE_SHELL_TODO_FILE
#
"#{ROEBE_SHELL_DOC_DIRECTORY}todo/roebe_shell_todo.md"
- CURRENT_DAY =
#
CURRENT_DAY
#
_[0].to_s
- CURRENT_MONTH =
#
CURRENT_MONTH
#
_[1].to_s
- CURRENT_YEAR =
#
CURRENT_YEAR
#
_[2].to_s
- CURRENT_DATE =
#
CURRENT_DATE
#
::Time.now.strftime('%d.%m.%Y')
- HASH_CONTAINING_THE_HELP_OPTIONS =
#
Roebe::Shell::HASH_CONTAINING_THE_HELP_OPTIONS
This is stored in a separate Hash so that we can access this content from Roebe::Shell embedded in a gtk-widget too.
To show this via the commandline do:
dia --help
#
{ '--benchmarks' => 'show some benchmarks while starting '\ 'the Roebe::Shell', '--extract' => "extract something with aid of the Roebe::Shell,\n"\ "such as in: `roebeshell --extract=foo.tar.xz`", '--enable-roebe' => "will enable home-system support. This will enable "\ "all features.\n", '--generate-tab-completion' => 'generate the tab-completable shortcuts '\ 'for the Roebe::Shell', '--help' => 'show this menu here', '--home-dir?' => 'show where the Roebe::Shell '\ 'assumes the home\ndirectory to be', '--home-dir=(new_value)' => "permanently set a new home directory, such as via:\n"\ " roebeshell --home-dir=/opt/shell/\n", '--no-colours' => 'do not use colours', '--no-startup' => "skip the startup() method invocation, thus "\ "loading a bit\n"\ "faster, but missing out on extra-functionality "\ "as well\n", '--norc' => 'do not load the configuration file on startup', '--noreadline' => 'do not make use of the ruby readline module', '--nohistory' => 'do not make use of history', '--run-method' => 'invoke a specific method in the Roebe::Shell', '--silent-startup' => "do a rather quiet startup of the "\ "Roebe::Shell, which means \n"\ "that we won't report too much information", '--time' => 'simply show the current time '\ '(in HH:MM:SS format); a convenience flag mostly', '--yaml-directory?' => "query the path to the local yaml-directory "\ "for\nthe Roebe::Shell", '--silent-start' => "do a silent start, e. g. suppress all output\n"\ "until the shell is running", '--version' => 'show the version of the Roebe::Shell, then exit' }
- FILE_ROEBE_SHELL_HELP =
#
Roebe::Shell::FILE_ROEBE_SHELL_HELP
This constant will point to a location such as:
/home/Programs/Ruby/2.7.1/lib/ruby/site_ruby/2.7.0/roebe/shell/help/help.rb
#
"#{::Roebe::Shell.project_base_directory?}help/help.rb"
- DIRECTORY_FOR_THE_CONFIGURATION_FILES =
#
DIRECTORY_FOR_THE_CONFIGURATION_FILES
#
"#{Roebe::Shell.yaml_directory?}configuration/"
- LAST_DOWNLOADED_FILE =
#
Roebe::Shell::LAST_DOWNLOADED_FILE
We store into this file here.
#
"#{Roebe::Shell.yaml_directory?}last_downloaded_file.yml"
- FILE_APPOINTMENT_DATES =
#
Roebe::Shell::FILE_APPOINTMENT_DATES
#
"#{::Roebe::HOME_OF_THE_USER_CALLED_X}misc/yaml/appointment_dates.yml"
- LOCATION_APPOINTMENT_DATES =
LOCATION_APPOINTMENT_DATES
FILE_APPOINTMENT_DATES
- FILE_DEFAULT_APPS =
#
FILE_DEFAULT_APPS
#
"#{Roebe::Shell.yaml_directory?}default_apps.yml"
- HELLO_WORLD =
#
HELLO_WORLD
#
'Hello world!'
- FILE_NOTIFICATIONS =
#
Roebe::Shell::FILE_NOTIFICATIONS
#
'NOTIFICATIONS.md'
- IGNORE_THESE_LAST_COMMANDS =
[]
- TV_CHANNELS =
{}
- ARRAY_ABBREVIATIONS_FOR_THE_SILENT_START =
#
Roebe::Shell::ARRAY_ABBREVIATIONS_FOR_THE_SILENT_START
#
%w( --silent-startup --silent --silentstartup --besilent --quiet --bequiet --silent-start SILEN quiet_start QUIET )
- FILE_FIRST_TIME_RUN =
#
Roebe::Shell::FILE_FIRST_TIME_RUN
#
"#{log_directory?}roebe_shell_has_been_started_at_the_least_once.md"
- ARRAY_VALID_VERSION_OPTIONS =
#
Roebe::Shell::ARRAY_VALID_VERSION_OPTIONS
#
%w( --version? --version -version version ver v )
- ARRAY_ABBREVIATIONS_FOR_DISABLING_THE_HISTORY =
#
Roebe::Shell::ARRAY_ABBREVIATIONS_FOR_DISABLING_THE_HISTORY
#
%w( --no-history no-history nohistory nhistory --nohistory disablehistory --disable-history )
- NAMESPACE =
#
Roebe::Shell::NAMESPACE
The general namespace for the Roebe::Shell.
#
inspect
- RUBY_OS =
#
Roebe::Shell::RUBY_OS
Very conveniently, Gem carries this information. It will return a String such as “linux”.
#
Gem::Platform.local.os
- CONVERT_COMMANDS =
#
Roebe::Shell::CONVERT_COMMANDS
These are the actions we can use to convert formats such as .mp3 into .wav and so forth.
#
%w( convert_to convertto convert conv )
- LONG_FILE_SIZE =
#
Roebe::Shell::LONG_FILE_SIZE
The constant LONG_FILE_SIZE tells us when to cut down file size.
#
50
- DEFAULT_PROMPT =
#
Roebe::Shell::DEFAULT_PROMPT
We default to display the current working directory as our prompt.
#
'PWD'
- REALVIDS =
#
Roebe::Shell::REALVIDS
This constant is only useful on my home directory.
#
'/home/x/video/Realvids/'
- REALLIFE_KARTEN =
#
Roebe::Shell::REALLIFE_KARTEN
#
"#{ENV['IMG']}/KARTEN/"
- REALLIFE_KARTEN_WIEN =
#
Roebe::Shell::REALLIFE_KARTEN_WIEN
#
"#{REALLIFE_KARTEN}WIEN/"
- REALLIFE_KARTEN_GERMANY =
#
Roebe::Shell::REALLIFE_KARTEN_GERMANY
#
"#{REALLIFE_KARTEN}DEUTSCHLAND/"
- ARRAY_VALID_NO_CONFIGURATION_OPTIONS =
#
ARRAY_VALID_NO_CONFIGURATION_OPTIONS
#
%w( --norc --noconfig --no-config -noconfig -norc noconfig norc )
- STARTUP_MESSAGE =
#
Roebe::Shell::STARTUP_MESSAGE
#
'Ready to accept commands now.'
- PROC_MODULES =
#
Roebe::Shell::PROC_MODULES
#
'/proc/modules'
- DEFAULT_PROMPT_TO_USE =
#
Roebe::Shell::DEFAULT_PROMPT_TO_USE
#
'> '
- MY_VIDEO =
#
Roebe::Shell::MY_VIDEO
#
"#{HOME_OF_THE_USER_CALLED_X}video/"
- LPAD =
#
LPAD
#
" #{Colours::CYAN}"
- FILE_HELP_MENU =
#
FILE_HELP_MENU
The constant defined here depends on a method, defined in the file 'programs_directory.rb'.
#
' |{| to start using the clipboard-buffer # ======================================================================= # # === a tag # ======================================================================= # |add_user| <name> to add a user |add_program| <name> to add a program # ======================================================================= # # === b tag # ======================================================================= # |backup| to backup your data |bioshell| to start the BioShell subpart. # ======================================================================= # # === c tag # ======================================================================= # |collapse| to toggle collapse mode |cal?| to display the calendar |calc| to calculate stuff |cd_burn| to burn a cd |clock| to display a simple ASCII Clock |compile| to compile a single program [Example: compile php]. Use compile ? to get help |contacts| to display some contacts |create_large_file| <FILE_NAME> to create a large file (Current size defaults to 200 MB) |create_zip| to create a .zip archive |cure| to repair your system # ======================================================================= # # === d tag # ======================================================================= # |defaults| to revert to shell-defaults again |default_action| to do your preformed action |description| <name> to get the description of a program from cookbook.yml |downcase| to downcase all files in the current directory. |download| <name> to download files (just like wget) |dvd_burn| to burn a dvd # ======================================================================= # # === e tag # ======================================================================= # |english| to ask an english word |exit| to exit the Roebe::Shell |extract| <file> to extract a package, no matter its format # ======================================================================= # # === f tag # ======================================================================= # |fetch_form| to fetch the first HTML formular |find| <something>, as in [find all pdf] |ftp| to ftp upload something |755| 555, 644 and so forth to chmod your files (change permission and access level) # ======================================================================= # # === g tag, g tig # ======================================================================= # |generate_feedback| to feedback help about programs, ie: gfeedback games |gtk| to enter the GTK shell (which provides gtk apps) |generate_random_image| <name> to generate a random image with some text |grabc| to grab a colour (delay: 1 second) |gist| to gist a file to gisthub (this requires that you did set the credentials first) # ======================================================================= # # === i tag # ======================================================================= # |include_program?| <name> to query whether a program exists in our "database" |install_grub| to install grub |install_nvidia| to install nvidia |irb| to start irb |irc_log| to append to QUOTES file (IRC Quotes) # ======================================================================= # # === k tag # ======================================================================= # |keyboard| to set your keyboard, i.e. to another layout |keywords?| to show the ruby keywords # ======================================================================= # # === l tag # ======================================================================= # |log_dir?| to show where the log directory is at # ======================================================================= # # === m tag, m tig # ======================================================================= # |make_iso| to generate an .iso file |merge| to merge different files together |mount_cd| to mount a CDROM |move| to move/rename a file, directory or symlink |methods_in?| to find all ruby-methods in a specific file, using "def" as the keyword # ======================================================================= # # === n tag, n tig # ======================================================================= # |new_tab| to open a new tab in konsole # ======================================================================= # # === o tag, o tig # ======================================================================= # |open_in_background| <name> to specifically open a program in the background /test/this # ======================================================================= # # === p tag, p tig # ======================================================================= # |php2ruby| to convert php files to ruby code |program_exist?| to query whether a given (usually binary) program exists on this system |popup| <your message> to give a visual notification on the computer and show a popup window |play| <file> to play a multimedia (audio or video) file, defaulting to mplayer (configuration value: video_player). # ======================================================================= # # === r tag, r tig # ======================================================================= # |ram?| to display the available RAM on your machine. |remove comment| <FOO.mp3> to remove a id3 comment tag from a .mp3 file. |repackage| to repackage an archive. |rcompile| to compile multiple programs, example: rcompile ruby to compile addons for ruby |rdate| to set a different date and time, as in rdate 07.DEC.2007 16:12:44 |repackage| to repackage a file, ie: "repackage foobar-1.0.tar.gz" will become foobar-1.0.tar.bz2 |rf| to open a local or remote page as in "rf map" |rskelmaker| to generate ruby skeleton directory (for a ruby project) |rsong| to start playing random songs |rhosts| to append to /etc/hosts |rm_user| <name> to remove a user |rshack| <name> to upload an image file to Imageshack # ======================================================================= # # === s tag # ======================================================================= # |screenshot| or just |shot| to make a screenshot of your current desktop. |scp| for remote copying of some files (uses some keywords) |set_background| to change to a new background. |show_task| to show some tasks (things todo or to read). |slogan?| to get the last slogan. |symlink| to symlink programs under the '+Roebe.programs_directory?+' hierarchy |system_checker| check the system. |show-docu| to show the documentation of a ruby method. |show-method| to show the source of a ruby method. |$| to show the source of a ruby method (this is just an alias to the above ^^^). # ======================================================================= # # === t tag, t tig # ======================================================================= # |title| <name> to set name of the konsole tab |tinyurl| <url> to turn a "normal" url to a shorter tinyurl |touch| to create a file |totarbz2/totarxz| <dir> to create a .tar.bz2 / .tar.xz archive |to_ascii| <image_file_or_files> to convert an image to ASCII characters. |toggle| to toggle various Roebe::Shell specific settings [Example: toggle user-input] |translate| to translate from english to german and translate ? to get help on it |tree_view| to list all the trees on your system # ======================================================================= # # === u tag, u tig # ======================================================================= # |unalias| <name> to unset an alias [Example: unalias pwdj] |url| <name> to get the URL of a program [Example: url php] |users?| to display users on your system # ======================================================================= # # === w tag, w tig # ======================================================================= # |webserve| <directory> to use Webrick as a HTTP server such as Apache httpd # ======================================================================= # # === q tag # ======================================================================= # |quiz| to make a little quiz |quit| to exit from the shell (aliases such as "q" or "exit" work also) ROEBE_SUBSECTION Now my personal stuff: |bindings| to enter interactive C-Bindings section |aatranslate| to translate aminoacids |classic| to play all my classic songs |wien?| to show the map of vienna '
- DEFAULT_CHMOD_VALUE =
#
Roebe::Shell::DEFAULT_CHMOD_VALUE
#
'755'
- USE_THIS_EMAIL =
'[email protected]'
- DEFAULT_EDITOR =
#
DEFAULT_EDITOR
#
:bluefish
- URL_AUDIO_STREAM =
#
Roebe::Shell::URL_AUDIO_STREAM
#
'https://yp.shoutcast.com/sbin/tunein-station.pls?id=164231'
- GENERATE_N_IMAGES =
#
Roebe::Shell::GENERATE_N_IMAGES
This constant is used in the method generate_image().
#
12
- RC_FILES =
#
RC_FILES
All RC_FILES are bundled here.
#
%w( aliases_rc basic_directory_layoutrc cd_aliases_rc cflags_rc colours_rc compile_rc computer_hardware_rc display_settings_rc emails_rc file_information_rc german_umlaute_rc gnome_rc http_status_codes_rc interrupts_rc kde_rc kernel_rc ls_colours_rc network_rc path_variable_rc pkgconfig_rc programs_aliases_rc roeberia_settings_rc system_rc system_settings_rc video_rc )
- ARRAY_VALID_BENCHMARK_OPTIONS =
#
ARRAY_VALID_BENCHMARK_OPTIONS
#
%w( --show_startup_times --startup_times --speed --speedtests --debug --benchmark --benchmarks --use-benchmarks --use_benchmarks --use-benchmark --use_benchmark --bench BENCHMARK SHOW_STARTUP_TIMES )
Constants inherited from Base
Base::COLOURS, Base::HOME_DIRECTORY_OF_USER_X, Base::N
Class Method Summary collapse
-
.append_to_the_array_roebe_shell_case_options(i) ⇒ Object
# === Roebe::Shell.append_to_the_array_roebe_shell_case_options ========================================================================= #.
-
.array_documented_help_options ⇒ Object
# === Roebe::Shell.array_documented_help_options =========================================================================== #.
-
.array_help_options ⇒ Object
# === Roebe::Shell.array_help_options ========================================================================= #.
-
.array_roebe_shell_case_options ⇒ Object
# === Roebe::Shell.array_roebe_shell_case_options ========================================================================= #.
-
.available_components? ⇒ Boolean
# === Roebe::Shell.available_components ========================================================================= #.
-
.check_upcoming_exams=(i) ⇒ Object
# === Roebe::Shell.check_upcoming_exams= ========================================================================= #.
-
.check_upcoming_exams? ⇒ Boolean
# === Roebe::Shell.check_upcoming_exams? ========================================================================= #.
-
.commandline_arguments? ⇒ Boolean
# === Roebe::Shell.commandline_arguments? ========================================================================= #.
-
.config_directory? ⇒ Boolean
# === Roebe::Shell.config_directory?.
-
.configuration? ⇒ Boolean
# === Roebe::Shell.configuration?.
-
.contains_a_valid_help_option?(i) ⇒ Boolean
# === Roebe::Shell.contains_a_valid_help_option?.
-
.create_manual(use_this_object = nil) ⇒ Object
# === Roebe::Shell.create_manual.
-
.debug? ⇒ Boolean
# === Roebe::Shell.debug? ========================================================================= #.
-
.disable_anmeldung ⇒ Object
# === Roebe::Shell.disable_anmeldung.
-
.disable_check_for_upcoming_exams ⇒ Object
# === Roebe::Shell.disable_check_for_upcoming_exams ========================================================================= #.
-
.disable_colours ⇒ Object
# === Roebe::Shell.disable_colours ========================================================================= #.
-
.disable_readline_is_available ⇒ Object
# === Roebe::Shell.disable_readline_is_available =========================================================================== #.
-
.do_not_use_configuration ⇒ Object
# === Roebe::Shell.do_not_use_configuration ========================================================================= #.
-
.do_use_benchmark_while_loading ⇒ Object
# === Roebe::Shell.do_use_benchmark_while_loading.
-
.do_we_use_readline? ⇒ Boolean
# === Roebe::Shell.do_we_use_readline? ========================================================================= #.
-
.e(i = '') ⇒ Object
# === Roebe::Shell.e ========================================================================= #.
-
.ecap(i) ⇒ Object
# === Roebe::Shell.ecap.
-
.ecomment(i = '') ⇒ Object
# === Roebe::Shell.ecomment ========================================================================= #.
-
.efancy(i = '', use_colours = true) ⇒ Object
# === Roebe::Shell.efancy ========================================================================= #.
-
.enable_check_for_upcoming_exams ⇒ Object
# === Roebe::Shell.enable_check_for_upcoming_exams ========================================================================= #.
-
.enable_colours ⇒ Object
# === Roebe::Shell.enable_colours ========================================================================= #.
-
.enable_debug ⇒ Object
# === Roebe::Shell.enable_debug ========================================================================= #.
-
.enable_readline_is_available ⇒ Object
# === Roebe::Shell.enable_readline_is_available =========================================================================== #.
-
.ensure_that_ftp_is_initialized ⇒ Object
# === Roebe::Shell.ensure_that_ftp_is_initialized.
-
.entries_from_path? ⇒ Boolean
# === Roebe::Shell.entries_from_path? ========================================================================= #.
-
.entries_from_path_as_array ⇒ Object
# === Roebe::Shell.entries_from_path_as_array ========================================================================= #.
-
.ewarn(i = '', use_colours = use_colours? ) ⇒ Object
# === Roebe::Shell.ewarn ========================================================================= #.
-
.exceptions_keep_numbers ⇒ Object
# === Roebe::Shell.exceptions_keep_numbers.
-
.external_requires ⇒ Object
# === Roebe::Shell.external_requires.
-
.file_check_upcoming_exams ⇒ Object
# === Roebe::Shell.file_check_upcoming_exams ========================================================================= #.
-
.file_shellrc ⇒ Object
# === Roebe::Shell.file_shellrc.
-
.file_video_collection(i = FILE_VIDEO_COLLECTION) ⇒ Object
# === MultimediaParadise.file_video_collection.
-
.ftp? ⇒ Boolean
# === Roebe::Shell.ftp? ========================================================================= #.
-
.generate_pdf_tutorial_then_upload_it ⇒ Object
# === Roebe::Shell.generate_pdf_tutorial_then_upload_it.
-
.generate_tab_completion(use_this_directory_as_log_directory = ::Roebe.log_dir?, &block) ⇒ Object
# === Roebe::Shell.generate_tab_completion.
-
.hash_help_options ⇒ Object
# === Roebe::Shell.hash_help_options.
-
.home_dir? ⇒ Boolean
# === Roebe::Shell.home_dir?.
-
.individual_cookbooks_directory? ⇒ Boolean
# === Roebe::Shell.individual_cookbooks_directory? ========================================================================= #.
-
.initialize_ftp_object(use_this_host = 'SHEVY') ⇒ Object
# === Roebe::Shell.initialize_ftp_object.
-
.is_on_kde_konsole? ⇒ Boolean
# === Roebe::Shell.is_on_kde_konsole? ========================================================================= #.
-
.load_help_files ⇒ Object
# === Roebe::Shell.load_help_files.
-
.load_standalone_classes_files ⇒ Object
# === Roebe::Shell.load_standalone_classes_files.
-
.main_encoding? ⇒ Boolean
# === Roebe::Shell.main_encoding?.
-
.main_file? ⇒ Boolean
# === Roebe::Shell.main_file? ========================================================================= #.
-
.missing_gems? ⇒ Boolean
# === Roebe::Shell.missing_gems?.
-
.parse_help_line(line) ⇒ Object
# === Roebe::Shell.parse_help_line.
-
.permanently_set_home_dir(what = ::Roebe::Shell.home_dir?, into = FILE_HOME_DIR) ⇒ Object
# === Roebe::Shell.permanently_set_home_dir.
-
.pid_file? ⇒ Boolean
# === Roebe::Shell.pid_file? ========================================================================= #.
-
.populate_inbuilt_hash_help_options ⇒ Object
# === Roebe::Shell.populate_inbuilt_hash_help_options.
-
.preferred_encoding? ⇒ Boolean
# === Roebe::Shell.preferred_encoding?.
-
.project_base_directory? ⇒ Boolean
# === Roebe::Shell.project_base_directory?.
-
.readline_is_available? ⇒ Boolean
# === Roebe::Shell.readline_is_available?.
-
.register_this_component(name, is_it_available) ⇒ Object
# === Roebe::Shell.register_this_component ========================================================================= #.
-
.register_this_missing_gem(file) ⇒ Object
# === Roebe::Shell.register_this_missing_gem ========================================================================= #.
-
.registered_case_options ⇒ Object
# === Roebe::Shell.registered_case_options.
-
.report_where_the_home_directory_can_be_found(home_dir = home_dir? ) ⇒ Object
# === Roebe::Shell.report_where_the_home_directory_can_be_found.
-
.require_this_via_a_thread(i) ⇒ Object
# === Roebe::Shell.require_this_via_a_thread.
-
.reset_help_options ⇒ Object
# === Roebe::Shell.reset_help_options ========================================================================= #.
-
.return_help_menu ⇒ Object
# === Roebe::Shell.return_help_menu.
-
.return_missing_components ⇒ Object
# === Roebe::Shell.return_missing_components ========================================================================= #.
-
.return_pwd ⇒ Object
# === Roebe::Shell.return_pwd ========================================================================= #.
-
.return_sanitized_help_menu(return_array_or_string = :string) ⇒ Object
# === Roebe::Shell.return_sanitized_help_menu ========================================================================= #.
-
.run(optional_commandline_arguments = ARGV, run_already = true) ⇒ Object
# === Roebe::Shell.run.
-
.set_commandline_arguments(i = ARGV) ⇒ Object
# === Roebe::Shell.set_commandline_arguments.
-
.set_configuration(i = nil) ⇒ Object
# === Roebe::Shell.set_configuration ========================================================================= #.
-
.set_debug(i = true) ⇒ Object
# === Roebe::Shell.set_debug ========================================================================= #.
-
.set_encoding(i = :default) ⇒ Object
# === Roebe::Shell.set_encoding.
-
.set_ftp(i) ⇒ Object
# === Roebe::Shell.set_ftp ========================================================================= #.
-
.set_hash_help_options(i = {}) ⇒ Object
# === Roebe::Shell.set_hash_help_options ========================================================================= #.
-
.set_home_directory(i = HOME_DIR) ⇒ Object
# === Roebe::Shell.set_home_directory.
-
.set_main_file(i) ⇒ Object
# === Roebe::Shell.set_main_file ========================================================================= #.
-
.set_startup_time_at(i = Time.now) ⇒ Object
# === Roebe::Shell.set_startup_time_at.
-
.set_this_file(i) ⇒ Object
# === Roebe::Shell.set_this_file ========================================================================= #.
-
.set_use_colours(i) ⇒ Object
# === Roebe::Shell.set_use_colours ========================================================================= #.
-
.sfancy(i = '', use_colours = use_colours? ) ⇒ Object
# === Roebe::Shell.sfancy ========================================================================= #.
-
.show_help(n_ljust = 28, use_this_colour_for_cliner = :royalblue) ⇒ Object
# === Roebe::Shell.show_help (commandline tag).
-
.simp(i = '', use_colours = @use_colours) ⇒ Object
# === Roebe::Shell.simp ========================================================================= #.
-
.startup_time_at? ⇒ Boolean
# === Roebe::Shell.startup_time_at? =========================================================================== #.
-
.swarn(i = '', use_colours = use_colours? ) ⇒ Object
# === Roebe::Shell.swarn ========================================================================= #.
-
.test_colours(use_colours = use_colours? ) ⇒ Object
# === Roebe::Shell.test_colours.
-
.test_this_input(i) ⇒ Object
Roebe::Shell.test_this_input.
-
.this_file? ⇒ Boolean
# === Roebe::Shell.this_file?.
-
.update_entries_from_path(i) ⇒ Object
# === Roebe::Shell.update_entries_from_path.
-
.upload(i, ftp_mode_to_use = :ascii, do_try_to_login = true) ⇒ Object
# === Roebe::Shell.upload.
-
.use_benchmark_while_loading? ⇒ Boolean
# === Roebe::Shell.use_benchmark_while_loading? ========================================================================= #.
-
.use_configuration_file=(i) ⇒ Object
# === Roebe::Shell.use_configuration_file? ========================================================================= #.
-
.use_configuration_file? ⇒ Boolean
# === Roebe::Shell.use_configuration_file?.
-
.use_konsole_colours? ⇒ Boolean
# === Roebe::Shell.use_konsole_colours?.
-
.valid_benchmark_options ⇒ Object
# === Roebe::Shell.valid_benchmark_options.
-
.valid_help_options ⇒ Object
# === Roebe::Shell.valid_help_options ========================================================================= #.
-
.valid_no_configuration_options ⇒ Object
# === Roebe::Shell.valid_no_configuration_options ========================================================================= #.
-
.yaml_directory? ⇒ Boolean
# === Roebe::Shell.yaml_directory? ========================================================================= #.
Instance Method Summary collapse
-
#_ ⇒ Object
# === _.
-
#_=(i) ⇒ Object
# === _= ========================================================================= #.
-
#act_filetype_specific(i) ⇒ Object
# === act_filetype_specific.
-
#action_check_for_isos(_ = '/Depot/ISOs/', be_verbose = be_verbose? ) ⇒ Object
(also: #check_for_isos)
# === action_check_for_isos.
-
#add(i) ⇒ Object
# === add (add tag).
-
#add_favourite_audio(i) ⇒ Object
# === add_favourite_audio.
-
#add_group(this_group = nil) ⇒ Object
# === add_group.
-
#add_personal_help_section ⇒ Object
# === add_personal_help_section.
-
#add_require(i) ⇒ Object
# === add_require.
-
#add_to_favourites(i) ⇒ Object
# === add_to_favourites.
-
#add_to_path(i, be_verbose = false) ⇒ Object
# === add_to_path ========================================================================= #.
-
#add_to_the_playlist(i) ⇒ Object
# === add_to_the_playlist.
-
#add_user(this_user = nil) ⇒ Object
# === add_user.
-
#aliases? ⇒ Boolean
# === aliases? ========================================================================= #.
-
#all(i = nil) ⇒ Object
# === all ========================================================================= #.
-
#all_arguments? ⇒ Boolean
(also: #all_arguments, #a?, #a, #arguments?)
# === all_arguments? ========================================================================= #.
-
#all_files(from_where = :pwd) ⇒ Object
(also: #get_all_files)
# === all_files.
-
#all_images(of_this_directory = get_pwd) ⇒ Object
# === all_images.
-
#all_songs(i = env?['MY_SONGS']) ⇒ Object
(also: #get_all_songs, #all_audio_files, #return_all_audio_files)
# === all_songs.
-
#analyse_the_user_input(_ = user_input? ) ⇒ Object
(also: #process_user_input)
# === analyse_the_user_input.
-
#anyone_has_a_birthday?(optional_n_days = 14) ⇒ Boolean
(also: #check_whether_anyone_has_a_birthday)
# === anyone_has_a_birthday?.
-
#append_file(what, into) ⇒ Object
(also: #append_onto_this_file)
# === append_file ========================================================================= #.
-
#append_this_to_the_arguments(i) ⇒ Object
# === append_this_to_the_arguments.
-
#append_this_to_the_last_result(i) ⇒ Object
# === append_this_to_the_last_result ========================================================================= #.
-
#append_what_to_file(what, where_to = this_file?.to_s, also_assign_to_this_file = true, be_verbose = true) ⇒ Object
(also: #append, #append_to_file, #append_what_into, #append_into_file)
# === append_what_to_file (appendtag, append tag).
-
#apply_on_every_file(i, file_listing = file_listing? ) ⇒ Object
# === apply_on_every_file.
-
#are_the_directory_aliases_available? ⇒ Boolean
(also: #are_the_expanded_cd_aliases_available?)
# === are_the_directory_aliases_available?.
-
#array_last_directories? ⇒ Boolean
# === array_last_directories? ========================================================================= #.
-
#ascii_paradise(argument = 'random') ⇒ Object
(also: #ascii)
# === ascii_paradise (ascii tag).
-
#ask_english_question(i) ⇒ Object
# === ask_english_question ========================================================================= #.
-
#ask_english_word(what_word = :rand, optional_n_times = nil, which_language = 'english') ⇒ Object
# === ask_english_word.
-
#ask_exam_question(i) ⇒ Object
# === ask_exam_question.
-
#ask_study_question(which_focus = :random, ask_n_times = 1) ⇒ Object
# === ask_study_question.
-
#assign_to_this_file(i = all_arguments?, , report_the_assignment = false) ⇒ Object
(also: #assign_file, #set_this_file, #set_last_file, #set_file, #assign)
# === assign_to_this_file (assign tag).
-
#assign_variable(*this_var) ⇒ Object
# === assign_variable.
-
#attempt_to_find_and_use_a_shellrc_file ⇒ Object
# === attempt_to_find_and_use_a_shellrc_file.
-
#autoconvert_numbers? ⇒ Boolean
# === autoconvert_numbers? ========================================================================= #.
-
#autostart(i = 'xfce') ⇒ Object
# === autostart.
-
#backup(i = nil) ⇒ Object
# === backup (backup tag) ========================================================================= #.
-
#backup_configuration(be_verbose = true) ⇒ Object
# === backup_configuration.
-
#backup_data(mode = all_arguments? ) ⇒ Object
# === backup_data (backup tag).
-
#base_directory_of_this_program(i, optional_output_result = false) ⇒ Object
# === base_directory_of_this_program.
-
#become(new_superuser_name = :god, old_user_name = 'root') ⇒ Object
# === become.
-
#burn(i = this_file?, , mode = :dvd) ⇒ Object
# === burn (burn tag).
-
#burn_cd(this_file = this_file?, , mode = :real_mode) ⇒ Object
# == burn_cd.
-
#burn_dvd(this_file = this_file?, , mode = :real_mode) ⇒ Object
# == burn_dvd (dvd tag).
-
#c_bindings_section ⇒ Object
# === c_bindings_section.
-
#calculate(i) ⇒ Object
# === calculate.
-
#calculate_atomic_mass(i) ⇒ Object
# === calculate_atomic_mass.
-
#calculate_n_seconds(i, be_verbose = true) ⇒ Object
# === calculate_n_seconds.
-
#calculcate_molecular_weight(i = 'Na₂') ⇒ Object
# === calculcate_molecular_weight.
-
#call(argument = :help) ⇒ Object
# === call.
-
#call_help ⇒ Object
# === call_help.
-
#camelcase(i = @_) ⇒ Object
# === camelcase.
-
#can_we_use_readline_in_principle? ⇒ Boolean
(also: #readline_is_available?, #is_readline_available?, #can_we_use_readline?)
# === can_we_use_readline_in_principle?.
-
#capitalize_this_file(i) ⇒ Object
(also: #capitalize)
# === capitalize_this_file ========================================================================= #.
-
#capture_screen(store_at_this_directory = TEMP_DIR) ⇒ Object
# === capture_screen.
-
#cat(i = all_arguments?, , optional_range = nil, be_verbose = false) ⇒ Object
(also: #show_file, #display_file)
# === cat (cat tag, read tag).
-
#cat2 ⇒ Object
alias cat get_file_content # Since Nov 2011 cat is no longer a 1:1 alias.
-
#cd(i = nil) ⇒ Object
(also: #change_directory, #change_dir, #enter_directory, #enter_dir)
# === cd (chdir tag, cd tag).
-
#cd_aliases? ⇒ Boolean
# === cd_aliases? ========================================================================= #.
-
#cd_one_down ⇒ Object
# === cd_one_down ========================================================================= #.
-
#celsius_to_fahrenheit(how_much = nil) ⇒ Object
# === celsius_to_fahrenheit.
-
#change_password(new_password = '', user_name = Etc.getlogin) ⇒ Object
# === change_password.
-
#change_tab_title(new_title = '') ⇒ Object
(also: #rename_tab)
# === change_tab_title (rename tab, dcop tag).
-
#check(what, optional_arg = nil) ⇒ Object
# === check.
-
#check_for_available_browser(i = :try_to_use_the_location_for_the_browser_from_the_configuration) ⇒ Object
# === check_for_available_browser.
-
#check_for_holidays(_ = '/home/x/data/personal/yaml/feiertage.yml') ⇒ Object
# === check_for_holidays.
-
#check_for_iso_files? ⇒ Boolean
# === check_for_iso_files? ========================================================================= #.
-
#check_for_new_notifications ⇒ Object
# === check_for_new_notifications ========================================================================= #.
-
#check_for_possible_directory(i = 'wget') ⇒ Object
# === check_for_possible_directory.
-
#check_for_upcoming_exams ⇒ Object
# === check_for_upcoming_exams.
-
#check_for_upcoming_exams? ⇒ Boolean
# === check_for_upcoming_exams?.
-
#check_hdd(which_hdd = :default) ⇒ Object
# === check_hdd.
-
#check_if_hdd_is_mounted_and_mount_it_if_it_is_not(i) ⇒ Object
# === check_if_hdd_is_mounted_and_mount_it_if_it_is_not.
-
#check_if_this_is_the_first_time_that_we_run_the_shell ⇒ Object
# === check_if_this_is_the_first_time_that_we_run_the_shell ========================================================================= #.
-
#check_upcoming_exams? ⇒ Boolean
# === check_upcoming_exams? ========================================================================= #.
-
#check_whether_an_internet_connection_is_available ⇒ Object
(also: #internet_is_available?)
# === check_whether_an_internet_connection_is_available ========================================================================= #.
-
#check_whether_i_have_an_appointment ⇒ Object
# === check_whether_i_have_an_appointment ========================================================================= #.
-
#chmod_target(this_target, new_chmod_value = DEFAULT_CHMOD_VALUE) ⇒ Object
(also: #chmod)
# === chmod_target.
-
#cipher_this_target(this_target = return_pwd) ⇒ Object
# === cipher_this_target.
-
#clear(i = :screen) ⇒ Object
# === clear.
-
#clear_buffer ⇒ Object
# === clear_buffer ========================================================================= #.
-
#clear_env ⇒ Object
# === clear_env ========================================================================= #.
-
#clear_history(also_remove_the_history_logfile = false) ⇒ Object
# === clear_history.
-
#clear_path ⇒ Object
# === clear_path.
-
#clear_the_old_arguments ⇒ Object
(also: #clear_all_arguments)
# === clear_the_old_arguments ========================================================================= #.
-
#cliner(use_this_character = :default, how_often_to_use_that_token = :default, use_this_colour = :default, &block) ⇒ Object
# === cliner.
-
#col(i = '') ⇒ Object
# === col ========================================================================= #.
-
#colourize(i) ⇒ Object
# === colourize.
-
#commandline_arguments? ⇒ Boolean
# === commandline_arguments? ========================================================================= #.
-
#compile(i = 'htop') ⇒ Object
# === compile.
-
#compile_ruby_from_source ⇒ Object
# === compile_ruby_from_source.
-
#compile_this_program(this_program, optional_instructions = :ntrad) ⇒ Object
(also: #compile_program)
# === compile_this_program (compile tag).
-
#compile_this_program_traditionally(i) ⇒ Object
# === compile_this_program_traditionally.
-
#compress_string(this_string) ⇒ Object
# === compress_string.
-
#config? ⇒ Boolean
(also: #configuration?)
# === config?.
-
#config_as_hash ⇒ Object
# === config_as_hash.
-
#config_directory? ⇒ Boolean
(also: #config_dir?)
# === config_directory? ========================================================================= #.
-
#consider_autogenerating_completion_for_roebe_shell_file(be_verbose = be_verbose? ) ⇒ Object
# === consider_autogenerating_completion_for_roebe_shell_file ========================================================================= #.
-
#consider_disabling_the_cyberweb_project ⇒ Object
# === consider_disabling_the_cyberweb_project ========================================================================= #.
-
#consider_installing_missing_gems ⇒ Object
# === consider_installing_missing_gems.
-
#consider_loading_the_addons_lazily(use_benchmark = Roebe::Shell.use_benchmark_while_loading?, be_verbose = false) ⇒ Object
(also: #load_external_requires, #try_to_lazy_load_all_described_components)
# === consider_loading_the_addons_lazily.
-
#consider_loading_the_aliases ⇒ Object
# === consider_loading_the_aliases ========================================================================= #.
-
#consider_reporting_how_long_it_took_us_loading_the_whole_shell_project(use_benchmark_while_loading = ::Roebe::Shell.use_benchmark_while_loading?) ⇒ Object
# === consider_reporting_how_long_it_took_us_loading_the_whole_shell_project ========================================================================= #.
-
#consider_using_readline ⇒ Object
# === consider_using_readline ========================================================================= #.
-
#consider_using_the_cd_aliases ⇒ Object
(also: #consider_using_the_directory_aliases)
# === consider_using_the_cd_aliases.
-
#convert(i = return_all_files, to = '') ⇒ Object
# === convert (convert tag).
-
#convert_from_pdf(i = get_pwd) ⇒ Object
# === convert_from_pdf.
-
#convert_image_to_png(i) ⇒ Object
# === convert_image_to_png.
-
#convert_number_to_file(i, index = 0) ⇒ Object
# === convert_number_to_file.
-
#convert_pdf_to_ps(i) ⇒ Object
# === convert_pdf_to_ps.
-
#convert_special_token(i) ⇒ Object
# === convert_special_token.
-
#convert_the_user_input_into_an_array ⇒ Object
# === convert_the_user_input_into_an_array ========================================================================= #.
-
#convert_to_pdf(i = nil) ⇒ Object
# === convert_to_pdf.
-
#convert_to_postscript(i) ⇒ Object
# === convert_to_postscript ========================================================================= #.
-
#cookbook_dataset(this_program = nil) ⇒ Object
# === cookbook_dataset.
-
#copy(i = return_pwd, copy_where_to = return_pwd) ⇒ Object
(also: #cp_what_to, #copy_files_from_to, #cp, #cpr)
# === copy (copy tag).
-
#copy_all_images_to(i = env?['IMG']) ⇒ Object
(also: #copy_all_images_to_here)
# === copy_all_images_to.
-
#copy_directory(this_dir, where_to = '.') ⇒ Object
# === copy_directory (cp tag, copy tag).
-
#copy_file(i, where_to = return_pwd) ⇒ Object
# === copy_file (copy file tag).
-
#copy_fonts(to_this_dir = env?['FONT_DIR']) ⇒ Object
# === copy_fonts.
-
#copy_roebeshell_files ⇒ Object
(also: #install_roebe_shell)
# === copy_roebeshell_files.
-
#copy_windows_dll ⇒ Object
# === copy_windows_dll.
-
#could_this_be_a_documented_ruby_method?(i) ⇒ Boolean
# === could_this_be_a_documented_ruby_method?.
-
#count(argument = :down, start_range = 250) ⇒ Object
# === count (count tag).
-
#crack(what, optional_password_to_use = 'Cox13') ⇒ Object
# === crack.
-
#crazy_make_mode ⇒ Object
# === crazy_make_mode.
-
#create(i, optional_arguments = nil) ⇒ Object
# === create (create tag).
-
#create_a_test_file ⇒ Object
# === create_a_test_file ========================================================================= #.
-
#create_archive(type = 'tar.bz2', name_of_archive) ⇒ Object
# === create_archive ========================================================================= #.
-
#create_clipboard(i = '}', be_verbose = false) ⇒ Object
(also: #reload_clipboard)
# === create_clipboard.
-
#create_directory(i = all_arguments?, , be_verbose = true) ⇒ Object
(also: #create_dir)
# === create_directory (mkdir tag).
-
#create_directory_layout ⇒ Object
# === create_directory_layout ========================================================================= #.
-
#create_file(i = this_file? ) ⇒ Object
(also: #touch, #create_new_file)
# === create_file (create tag, touch tag).
-
#create_file_skeleton(this_file = this_file?, , overwrite_the_file_if_it_exists = true) ⇒ Object
# === create_file_skeleton.
-
#create_image ⇒ Object
# === create_image.
-
#create_interactive_iso ⇒ Object
# === create_interactive_iso.
-
#create_iso(use_this_directory = return_pwd, optional_name_for_iso = '') ⇒ Object
(also: #make_iso)
# === create_iso.
-
#create_large_file(name = 'large_file') ⇒ Object
# === create_large_file.
-
#create_manual ⇒ Object
# === create_manual.
-
#create_new_cookbook(i = nil) ⇒ Object
# === create_new_cookbook.
-
#create_program(i = get_pwd) ⇒ Object
# === create_program.
-
#create_ruby_skeleton(this_project) ⇒ Object
# === create_ruby_skeleton (skeleton tag).
-
#create_setpoint(this_point = get_pwd) ⇒ Object
# === create_setpoint.
-
#create_shellrc_file ⇒ Object
# === create_shellrc_file.
-
#create_webpage_for_images(i = nil, store_here = '/Depot/Images.html') ⇒ Object
# === create_webpage_for_images.
-
#create_zip(i) ⇒ Object
# === create_zip.
-
#css_analyze(i) ⇒ Object
# === css_analyze.
-
#cut(i = all_arguments? ) ⇒ Object
# === cut.
-
#cut_audio(start_position = cut_audio?.start_position, end_position = cut_audio?.end_position, this_file = this_file? ) ⇒ Object
# === cut_audio.
-
#cut_audio? ⇒ Boolean
# === cut_audio? ========================================================================= #.
-
#cut_end(i) ⇒ Object
# === cut_end.
-
#cut_start(i) ⇒ Object
# === cut_start.
-
#cut_video(file) ⇒ Object
# === cut_video ========================================================================= #.
-
#debug(i = nil) ⇒ Object
# === debug ========================================================================= #.
-
#delay(how_long = 10, be_verbose = true) ⇒ Object
# === delay.
-
#delete_unused_pids ⇒ Object
# === delete_unused_pids.
-
#determine_n_files_n_directories_n_symlinks(i = file_listing? ) ⇒ Object
# === determine_n_files_n_directories_n_symlinks.
-
#directory_content(from = return_pwd) ⇒ Object
# === directory_content.
-
#disable(i) ⇒ Object
# === disable (disable tag) ========================================================================= #.
-
#disable_anmeldung(be_verbose = true) ⇒ Object
# === disable_anmeldung.
-
#disable_askeng ⇒ Object
# === disable_askeng ========================================================================= #.
-
#disable_autogeneration ⇒ Object
# === disable_autogeneration.
-
#disable_background ⇒ Object
# === disable_background.
-
#disable_coderay(be_verbose = true) ⇒ Object
# === disable_coderay ========================================================================= #.
-
#disable_colours(also_save_config = true, be_verbose = true) ⇒ Object
# === disable_colours (disable colours tag).
-
#disable_compiz ⇒ Object
# === disable_compiz ========================================================================= #.
-
#disable_configuration ⇒ Object
# === disable_configuration ========================================================================= #.
-
#disable_debug(be_verbose = true) ⇒ Object
# === disable_debug ========================================================================= #.
-
#disable_display_index(be_verbose = true) ⇒ Object
# === disable_display_index ========================================================================= #.
-
#disable_history(be_verbose = true, also_save_config = true) ⇒ Object
# === disable_history.
-
#disable_iso_notification ⇒ Object
# === disable_iso_notification ========================================================================= #.
-
#disable_logging ⇒ Object
# === disable_logging.
-
#disable_padding ⇒ Object
# === disable_padding ========================================================================= #.
-
#disable_program(i) ⇒ Object
# === disable_program.
-
#disable_readline(be_verbose = true) ⇒ Object
# === disable_readline.
-
#disable_screenshots(be_verbose = true) ⇒ Object
# === disable_screenshots ========================================================================= #.
-
#disable_show_hidden_files ⇒ Object
# === disable_show_hidden_files ========================================================================= #.
-
#display(i = nil) ⇒ Object
# === display (display tag).
-
#display_available_users ⇒ Object
# === display_available_users.
-
#display_banner(text_to_display = :default) ⇒ Object
# === display_banner.
-
#display_contacts(from = FILE_CONTACTS_YAML, left_padding = left_padding? ) ⇒ Object
# === display_contacts.
-
#display_environment_information(i = :show_everything) ⇒ Object
# === display_environment_information ========================================================================= #.
-
#display_hardware_information ⇒ Object
# === display_hardware_information.
-
#display_help_options ⇒ Object
(also: #show_help_screen, #show_help_options)
# === display_help_options (help tag, help section).
-
#display_host_information(level = :all) ⇒ Object
# === display_host_information.
-
#display_mbr ⇒ Object
# === display_mbr ========================================================================= #.
-
#display_prompt ⇒ Object
(also: #show_prompt, #show_pwd, #report_pwd, #show_the_main_prompt, #display_the_prompt)
# === display_prompt.
-
#display_protected_directories(array_protected_directories = config?.protected_directories) ⇒ Object
# === display_protected_directories.
-
#display_ram ⇒ Object
# === display_ram.
-
#display_range_hint ⇒ Object
# === display_range_hint ========================================================================= #.
-
#display_specific_hardware_information ⇒ Object
# === display_specific_hardware_information ========================================================================= #.
-
#display_this_file_or_run_the_command_called_file_on_it(i = this_file? ) ⇒ Object
# === display_this_file_or_run_the_command_called_file_on_it ========================================================================= #.
-
#display_video_resolution ⇒ Object
# === display_video_resolution ========================================================================= #.
-
#do_a_silent_start ⇒ Object
# === do_a_silent_start.
-
#do_action_in(i) ⇒ Object
# === do_action_in.
-
#do_add_this_user(this_user) ⇒ Object
# === do_add_this_user ========================================================================= #.
-
#do_check_for_isos ⇒ Object
# === do_check_for_isos ========================================================================= #.
-
#do_delete_empty_files ⇒ Object
# === do_delete_empty_files ========================================================================= #.
-
#do_not_check_for_isos ⇒ Object
# === do_not_check_for_isos ========================================================================= #.
-
#do_not_notify_about_upcoming_anmeldungen ⇒ Object
# === do_not_notify_about_upcoming_anmeldungen ========================================================================= #.
-
#do_not_report_the_version ⇒ Object
(also: #do_not_report_version)
# === do_not_report_the_version ========================================================================= #.
-
#do_not_show_iso_files ⇒ Object
# === do_not_show_iso_files ========================================================================= #.
-
#do_not_show_modification_time(be_verbose = false) ⇒ Object
# === do_not_show_modification_time ========================================================================= #.
-
#do_not_use_readline ⇒ Object
# === do_not_use_readline ========================================================================= #.
-
#do_not_use_the_configuration_file ⇒ Object
# === do_not_use_the_configuration_file ========================================================================= #.
-
#do_open_in_background ⇒ Object
# === do_open_in_background ========================================================================= #.
-
#do_paste_the_xorg_buffer ⇒ Object
# === do_paste_the_xorg_buffer.
-
#do_require_file(i) ⇒ Object
# === do_require_file.
-
#do_reveal_clipboard_buffer ⇒ Object
# === do_reveal_clipboard_buffer ========================================================================= #.
-
#do_startup_related_tasks_via_a_thread ⇒ Object
(also: #startup, #do_startup_actions)
# === do_startup_related_tasks_via_a_thread (startup tag).
-
#do_url_action(this_action = nil) ⇒ Object
# === do_url_action.
-
#do_we_log_history?(optional_hash = {}) ⇒ Boolean
# === do_we_log_history? ========================================================================= #.
-
#do_we_show_hidden_files?(optional_hash = {}) ⇒ Boolean
# === do_we_show_hidden_files? ========================================================================= #.
-
#do_we_use_readline?(optional_hash = {}) ⇒ Boolean
# === do_we_use_readline?.
-
#does_this_program_exist?(i) ⇒ Boolean
(also: #program_exists?)
# === does_this_program_exist? ========================================================================= #.
-
#downcase(what = get_pwd) ⇒ Object
# === downcase.
-
#download(i, optional_location = nil) ⇒ Object
# === download.
-
#download_youtube_video(i) ⇒ Object
# === download_youtube_video.
-
#dump(i) ⇒ Object
# === dump ========================================================================= #.
-
#dump_config ⇒ Object
# === dump_config.
-
#easycompile(i = return_random_entry) ⇒ Object
# === easycompile ========================================================================= #.
-
#edit_image(which_image_editor_to_use = :gimp, which_image_file = '') ⇒ Object
# === edit_image.
-
#edit_roebe_shell ⇒ Object
# === edit_roebe_shell.
-
#editor? ⇒ Boolean
# === editor? ========================================================================= #.
-
#ee(i, make_newline = false) ⇒ Object
# === ee (ee tag).
-
#eject_cd ⇒ Object
# === eject_cd.
-
#eliminate_gems_in(i) ⇒ Object
(also: #eliminate_gem_in)
# === eliminate_gems_in.
-
#embedded_pp(i) ⇒ Object
# === embedded_pp.
-
#empty(i) ⇒ Object
# === empty.
-
#enable(what = all_arguments?, , be_verbose = false) ⇒ Object
# === enable (enable tag).
-
#enable_askeng ⇒ Object
# === enable_askeng ========================================================================= #.
-
#enable_auto_login ⇒ Object
# === enable_auto_login.
-
#enable_coderay ⇒ Object
# === enable_coderay ========================================================================= #.
-
#enable_collapse(be_verbose = true) ⇒ Object
# === enable_collapse ========================================================================= #.
-
#enable_colours(be_verbose = true) ⇒ Object
(also: #do_use_colours)
# === enable_colours.
-
#enable_debug(show_this_message = 'Now enabling '+sfancy('debug-mode')+'.') ⇒ Object
# === enable_debug.
-
#enable_display_index(be_verbose = true) ⇒ Object
# === enable_display_index ========================================================================= #.
-
#enable_ftp ⇒ Object
# === enable_ftp.
-
#enable_history ⇒ Object
# === enable_history ========================================================================= #.
-
#enable_irb_drop ⇒ Object
# === enable_irb_drop.
-
#enable_kde_autostart ⇒ Object
# === enable_kde_autostart ========================================================================= #.
-
#enable_kde_konsole_colours ⇒ Object
# === enable_kde_konsole_colours.
-
#enable_readline(be_verbose = true) ⇒ Object
# === enable_readline ========================================================================= #.
-
#enable_screenshots(be_verbose = false) ⇒ Object
# === enable_screenshots ========================================================================= #.
-
#enable_traceback ⇒ Object
# === enable_traceback.
-
#ensure_dir(i) ⇒ Object
# === ensure_dir.
-
#ensure_that_the_log_directory_exists(be_verbose = :be_verbose) ⇒ Object
# === ensure_that_the_log_directory_exists.
-
#enter_mud_section ⇒ Object
# === enter_mud_section.
-
#enter_repair_section ⇒ Object
# === enter_repair_section.
-
#enter_the_main_loop(be_verbose = be_verbose? ) ⇒ Object
(also: #enter_main_loop, #run_main_loop)
# === enter_the_main_loop (loop tag).
-
#env? ⇒ Boolean
# === env?.
-
#environment_output(i) ⇒ Object
(also: #e_output)
# === environment_output.
-
#escape_shell_characters(i) ⇒ Object
# === escape_shell_characters.
-
#esystem(i, open_in_background = open_in_background?, , &block) ⇒ Object
# === esystem.
-
#eval(string) ⇒ Object
# === eval (eval tag).
-
#events? ⇒ Boolean
# === events?.
-
#exams_per_month ⇒ Object
# === exams_per_month ========================================================================= #.
-
#exchange_lilo_with_grub ⇒ Object
# === exchange_lilo_with_grub.
-
#exit_shell(be_silent = true, really_exit = true) ⇒ Object
(also: #on_exit)
# === exit_shell (on exit tag, exit tag).
-
#expand_glob(i) ⇒ Object
(also: #glob, #try_glob)
# === expand_glob (glob tag).
-
#expand_path(i) ⇒ Object
(also: #obtain_home_dir)
# === expand_path.
-
#extract(this = all_arguments?, , extract_where_to = get_pwd) ⇒ Object
(also: #extract_package, #extract_archive)
# === extract (extract tag).
-
#extract_audio(i, where_to = return_pwd) ⇒ Object
# === extract_audio.
-
#extract_what_to(what = all_arguments?, , to = return_pwd) ⇒ Object
# === extract_what_to.
-
#fahrenheit_to_celsius(i) ⇒ Object
# === fahrenheit_to_celsius.
-
#favourite_audio_files? ⇒ Boolean
# === favourite_audio_files?.
-
#feedback(i) ⇒ Object
# === feedback (feedback tag) ========================================================================= #.
-
#feedback_all_about_colours ⇒ Object
# === feedback_all_about_colours.
-
#feedback_all_available_methods ⇒ Object
# === feedback_all_available_methods.
-
#feedback_all_available_methods_or_just_one_method(i = nil) ⇒ Object
# === feedback_all_available_methods_or_just_one_method ========================================================================= #.
-
#feedback_ascii_related_methods ⇒ Object
# === feedback_ascii_related_methods ========================================================================= #.
-
#feedback_available_disable_actions ⇒ Object
# === feedback_available_disable_actions ========================================================================= #.
-
#feedback_available_enable_actions ⇒ Object
# === feedback_available_enable_actions.
-
#feedback_available_programs ⇒ Object
# === feedback_available_programs.
-
#feedback_burn_program ⇒ Object
# === feedback_burn_program.
-
#feedback_completion_proc ⇒ Object
# === feedback_completion_proc.
-
#feedback_cutting ⇒ Object
# === feedback_cutting.
-
#feedback_description_for_this_program(i) ⇒ Object
# === feedback_description_for_this_program.
-
#feedback_enable_or_disable_actions(array) ⇒ Object
# === feedback_enable_or_disable_actions.
-
#feedback_instance_variables ⇒ Object
# === feedback_instance_variables ========================================================================= #.
-
#feedback_prompt ⇒ Object
# === feedback_prompt (Prompt tag).
-
#feedback_rbt_help ⇒ Object
# === feedback_rbt_help.
-
#feedback_use_irb_drop ⇒ Object
# === feedback_use_irb_drop ========================================================================= #.
-
#feedback_version_and_url_about(i = 'wine') ⇒ Object
# === feedback_version_and_url_about.
-
#feedback_where_the_shellrc_file_is_stored_at ⇒ Object
# === feedback_where_the_shellrc_file_is_stored_at ========================================================================= #.
-
#feedback_will_we_upload_screenshots?(optional_hash = {}) ⇒ Boolean
# === feedback_will_we_upload_screenshots? ========================================================================= #.
-
#feedback_will_we_use_colours?(optional_hash = {}) ⇒ Boolean
# === feedback_will_we_use_colours? ========================================================================= #.
-
#fetch(i = 'ogg') ⇒ Object
(also: #fetch_all)
# === fetch (fetch tag).
-
#fetch_multiline_user_input ⇒ Object
# === fetch_multiline_user_input ========================================================================= #.
-
#fetch_random_song(from_this_directory = env?['MY_SONGS']) ⇒ Object
(also: #get_random_song)
# === fetch_random_song.
-
#fetch_url(this_url) ⇒ Object
# === fetch_url.
-
#file_listing? ⇒ Boolean
# === file_listing? ========================================================================= #.
-
#find(arguments) ⇒ Object
# === find.
-
#find_file_entry_at_this_position(i) ⇒ Object
# === find_file_entry_at_this_position.
-
#find_pdf_files(i) ⇒ Object
# === find_pdf_files ========================================================================= #.
-
#find_user_with_this_id(i) ⇒ Object
# === find_user_with_this_id.
-
#find_video(search_term) ⇒ Object
# === find_video.
-
#first_argument? ⇒ Boolean
(also: #f?, #f, #first_argument)
# === first_argument? ========================================================================= #.
-
#first_entry_of_the_path? ⇒ Boolean
# === first_entry_of_the_path? ========================================================================= #.
-
#ftp_recursively_copy(this_directory) ⇒ Object
# === ftp_recursively_copy.
-
#ftp_show_remote_listing(may_we_use_ftp = use_ftp?) ) ⇒ Object
# === ftp_show_remote_listing.
-
#ftp_upload(this_file = '/Depot/Information/URLs.html', *other_args) ⇒ Object
# === ftp_upload (ftp tag, ftpupload tag).
-
#ftp_upload_project(which_project = 'rbt') ⇒ Object
# === ftp_upload_project.
-
#generate(i = nil) ⇒ Object
# === generate.
-
#generate_aliases(into_this_directory = '$HOME/AUTOGENERATED/') ⇒ Object
# === generate_aliases.
-
#generate_cd_aliases_hash ⇒ Object
# === generate_cd_aliases_hash.
-
#generate_diamondshell_tutorial ⇒ Object
# === create_manual.
-
#generate_feedback(i = 'help') ⇒ Object
# === generate_feedback (feedback tag).
-
#generate_image(i = random_string(), n_times = GENERATE_N_IMAGES) ⇒ Object
(also: #generate_random_image)
# === generate_image (img tag, image tag).
-
#generate_inputrc ⇒ Object
# === generate_inputrc.
-
#generate_keys ⇒ Object
# === generate_keys.
-
#generate_pdf(use_this_text = file? ) ⇒ Object
# === generate_pdf.
-
#generate_rc_files(optional_hash = nil) ⇒ Object
# === generate_rc_files.
-
#generate_roebeshell_manual ⇒ Object
# === generate_roebeshell_manual.
-
#generate_spreadsheet ⇒ Object
# === generate_spreadsheet.
-
#generate_tab_completion(store_here = log_dir?+'completion_for_the_roebe_shell.sh') ⇒ Object
# === generate_tab_completion.
-
#generate_www_colours ⇒ Object
# === generate_www_colours.
-
#generate_xorg(store_where = '/home/Temp/') ⇒ Object
# === generate_xorg.
-
#get_address_of(i) ⇒ Object
# === get_address_of.
-
#get_directories(from_this_directory = return_pwd, return_only_the_names = false) ⇒ Object
(also: #get_all_directories, #get_all_directories_from, #get_directory_listing)
# === get_directories.
-
#get_file_content(i, optional_obtain_only_n_lines = nil) ⇒ Object
# === get_file_content.
-
#get_file_listing(from_this_directory = get_pwd, get_from_subdirectories = false, filter = nil, apply_reversed_filter = false) ⇒ Object
(also: #update_file_listing, #get_all_files_from_current_directory, #get_files, #get_all, #get_file_listing_from, #get_all_files_from, #file_listing, #get_files_from, #return_all_files)
# === get_file_listing.
-
#get_hdds ⇒ Object
# === get_hdds.
-
#get_instance_variables ⇒ Object
(also: #return_instance_variables)
# === get_instance_variables ========================================================================= #.
-
#get_ivar(i, be_verbose = true) ⇒ Object
(also: #get_instance_var)
# === get_ivar.
-
#get_random_file(optional_regex = nil) ⇒ Object
# === get_random_file.
-
#get_tv_channel(this_channel) ⇒ Object
# === get_tv_channel.
-
#get_var(this_var = nil, local_variables = local_variables? ) ⇒ Object
# === get_var.
-
#gist_this(i, public_or_private = :private) ⇒ Object
# === gist_this.
-
#google(for_this_or_these_terms = 'ruby') ⇒ Object
# === google (google tag).
-
#grab_colour ⇒ Object
# === grab_colour ========================================================================= #.
-
#gzip_this_file(this_file) ⇒ Object
# === gzip_this_file.
-
#handle_alias(i = all_arguments? ) ⇒ Object
(also: #handle_this_alias)
# === handle_alias.
-
#handle_history(history_position = nil) ⇒ Object
# === handle_history.
-
#handle_ivar_command(i) ⇒ Object
# === handle_ivar_command.
-
#handle_plus_and_minus_input(cmd) ⇒ Object
# === handle_plus_and_minus_input.
-
#handle_shorturl(i) ⇒ Object
# === handle_shorturl ========================================================================= #.
-
#handle_this_mp3_file(i, this_year = '2015') ⇒ Object
# === handle_this_mp3_file ========================================================================= #.
-
#has_ivar?(i) ⇒ Boolean
# === has_ivar?.
-
#hash_english_dictionary? ⇒ Boolean
(also: #english_dictionary?)
# === hash_english_dictionary? ========================================================================= #.
-
#hash_file_positions? ⇒ Boolean
# === hash_file_positions? ========================================================================= #.
-
#help_options? ⇒ Boolean
(also: #available_help_options?)
# === help_options?.
-
#home_dir? ⇒ Boolean
(also: #project_home_dir?, #project_home_directory?)
# === home_dir?.
-
#home_directory? ⇒ Boolean
# === home_dir? ========================================================================= # === home_directory?.
-
#image_optimize(i = this_file? ) ⇒ Object
# === image_optimize.
-
#imageshack(i) ⇒ Object
# === imageshack ========================================================================= #.
-
#imdb_search_for(i) ⇒ Object
# === imdb_search_for.
-
#info(i) ⇒ Object
(also: #identify)
# === info.
-
#initialize(commandline_arguments = ARGV, run_already = true, &block) ⇒ Shell
constructor
# === initialize ========================================================================= #.
-
#initialize_ftp ⇒ Object
(also: #initialize_ftp_object)
# === initialize_ftp ========================================================================= #.
-
#input_has_at_least_two_upcased_characters(i) ⇒ Object
# === input_has_at_least_two_upcased_characters.
-
#input_history? ⇒ Boolean
(also: #input_history)
# === input_history? ========================================================================= #.
-
#install(i) ⇒ Object
# === install (install tag).
-
#install_acrobat_reader ⇒ Object
# === install_acrobat_reader.
-
#install_debian_package(i = :default) ⇒ Object
# === install_debian_package.
-
#install_grub ⇒ Object
# === install_grub.
-
#install_mp3directcut ⇒ Object
# === install_mp3directcut.
-
#install_nvidia ⇒ Object
# === install_nvidia.
-
#install_on_windows ⇒ Object
(also: #install_windows)
# === install_on_windows.
-
#install_project(work_on_these_paths = all_arguments? ) ⇒ Object
# === install_project.
-
#install_starter_pack ⇒ Object
# === install_starter_pack.
-
#install_this_gem(i) ⇒ Object
# === install_this_gem.
-
#install_windows_addons ⇒ Object
# === install_windows_addons.
-
#install_wlan ⇒ Object
# === install_wlan ========================================================================= #.
-
#interactive_ftp(which_host_to_use = 'standard', user_name = :default) ⇒ Object
(also: #start_ftp)
# === interactive_ftp ========================================================================= #.
-
#interactive_popup(be_interactive = true, height = 180, width = 360) ⇒ Object
# === interactive_popup (popup tag, pop tag).
-
#internal_change_directory(i) ⇒ Object
# === internal_change_directory.
-
#internal_get_files_from(this_directory = return_pwd, get_from_subdirectories = false) ⇒ Object
# === internal_get_files_from.
-
#irc(name_of_the_channel = 'ruby') ⇒ Object
# === irc.
-
#is(i) ⇒ Object
# === is.
-
#is_a_remote_file?(i) ⇒ Boolean
# === is_a_remote_file?.
-
#is_a_valid_configuration_option?(i) ⇒ Boolean
# === is_a_valid_configuration_option?.
-
#is_archive?(i) ⇒ Boolean
# === is_archive?.
-
#is_file_and_exists?(target) ⇒ Boolean
# === is_file_and_exists?.
-
#is_image_file?(i) ⇒ Boolean
# === is_image_file? ========================================================================= #.
-
#is_it_a_defined_method_in_the_roebe_shell_project?(i) ⇒ Boolean
# === is_it_a_defined_method_in_the_roebe_shell_project? ========================================================================= #.
-
#is_it_an_existing_file_in_the_roebe_shell_project?(i) ⇒ Boolean
# === is_it_an_existing_file_in_the_roebe_shell_project? ========================================================================= #.
-
#is_not_on_roebe ⇒ Object
(also: #set_is_not_on_roebe)
# === is_not_on_roebe.
-
#is_on_roebe ⇒ Object
(also: #set_is_on_roebe)
# === is_on_roebe.
-
#is_on_roebe? ⇒ Boolean
(also: #on_roebe?, #is_roebe?)
# === is_on_roebe? ========================================================================= #.
-
#is_on_windows? ⇒ Boolean
(also: #on_windows?, #are_we_on_windows?)
# === is_on_windows?.
-
#is_this_a_config_key?(i) ⇒ Boolean
# === is_this_a_config_key?.
-
#is_this_a_number?(this) ⇒ Boolean
# === is_this_a_number?.
-
#is_this_env_variable_registered?(i) ⇒ Boolean
# === is_this_env_variable_registered? ========================================================================= #.
-
#is_this_program_included?(this_program) ⇒ Boolean
# === is_this_program_included?.
-
#is_video_file?(i) ⇒ Boolean
# === is_video_file? ========================================================================= #.
-
#is_xorg_running? ⇒ Boolean
(also: #xorg_running?, #xorg_is_running?)
# === is_xorg_running?.
-
#iso_info(this_iso_file = '*.iso') ⇒ Object
# === iso_info.
-
#jp2a(i) ⇒ Object
# === jp2a.
-
#jump_to(i = 0, config = config? ) ⇒ Object
# === jump_to.
-
#kde_autostart ⇒ Object
# === kde_autostart.
-
#kill_firefox ⇒ Object
# === kill_firefox ========================================================================= #.
-
#kill_palemoon ⇒ Object
# === kill_palemoon ========================================================================= #.
-
#last_command? ⇒ Boolean
# === last_command? ========================================================================= #.
-
#last_downloaded? ⇒ Boolean
# === last_downloaded? ========================================================================= #.
-
#last_file? ⇒ Boolean
(also: #this_file?, #file?)
# === last_file? ========================================================================= #.
-
#last_result? ⇒ Boolean
# === last_result? ========================================================================= #.
-
#last_song? ⇒ Boolean
# === last_song? ========================================================================= #.
-
#lastdir?(array_last_directories = array_last_directories? ) ⇒ Boolean
# === lastdir?.
-
#left_padding? ⇒ Boolean
# === left_padding? ========================================================================= #.
-
#legitimate_target?(target_file = '/fanfare/asdjksd') ⇒ Boolean
# === legitimate_target?.
-
#list_audio_files(input = get_file_listing) ⇒ Object
# === list_audio_files.
-
#list_available_songs(apply_filter = nil, be_silent = false) ⇒ Object
(also: #get_songs)
# === list_available_songs (songs tag).
-
#load_configuration(use_this_directory = DIRECTORY_FOR_THE_CONFIGURATION_FILES) ⇒ Object
# === load_configuration.
-
#load_configuration_and_configuration_dependent_settings ⇒ Object
# === load_configuration_and_configuration_dependent_settings.
-
#load_dictionary ⇒ Object
(also: #reload_dictionary)
# === load_dictionary.
-
#load_file(f) ⇒ Object
(also: #load)
# === load_file.
-
#load_large_projects_in_a_delayed_manner ⇒ Object
# === load_large_projects_in_a_delayed_manner ========================================================================= #.
-
#load_personal_settings ⇒ Object
# === load_personal_settings.
-
#load_studium_in_a_delayed_way ⇒ Object
# === load_studium_in_a_delayed_way ========================================================================= #.
-
#load_task(what = :default) ⇒ Object
# === load_task.
-
#load_which_components? ⇒ Boolean
# === load_which_components? ========================================================================= #.
-
#load_yaml(file = :config_file) ⇒ Object
(also: #read_yaml, #load_yaml_file)
# === load_yaml.
-
#locate(i) ⇒ Object
# === locate.
-
#location_of_history_file? ⇒ Boolean
# === location_of_history_file?.
-
#log_cut_action(start_position, end_position, command_that_was_used, output_file) ⇒ Object
# === log_cut_action ========================================================================= #.
-
#log_dir? ⇒ Boolean
(also: #diamond_shell_base_dir?)
# === home_dir? ========================================================================= # === log_dir?.
-
#log_dir_yaml? ⇒ Boolean
# === log_dir_yaml? ========================================================================= #.
-
#log_directory? ⇒ Boolean
# === home_dir? ========================================================================= # === log_directory?.
-
#lookup_ri_documentation(i = nil) ⇒ Object
# === lookup_ri_documentation.
-
#loop_through_the_local_images_and_set_them_as_background ⇒ Object
# === loop_through_the_local_images_and_set_them_as_background ========================================================================= #.
-
#lpc_shell ⇒ Object
# === lpc_shell ========================================================================= #.
-
#m4a_to_mp3(i = this_file? ) ⇒ Object
# === m4a_to_mp3 ========================================================================= #.
-
#main_encoding? ⇒ Boolean
# === main_encoding? ========================================================================= #.
-
#main_file? ⇒ Boolean
# === main_file?.
-
#make(i = nil) ⇒ Object
# === make (make tag).
-
#make_gem_for(i) ⇒ Object
(also: #make_gem)
# === make_gem_for.
-
#make_screenshot(optional_filename_to_use = nil, delay = '1', xorg_is_running = true, screenshot_program = 'scrot') ⇒ Object
# === make_screenshot.
-
#make_this_inode_sticky(i) ⇒ Object
# === make_this_inode_sticky ========================================================================= #.
-
#may_we_exit? ⇒ Boolean
# === may_we_exit? ========================================================================= #.
-
#may_we_exit_from_the_user_input_loop? ⇒ Boolean
(also: #check_exit_condition)
# === may_we_exit_from_the_user_input_loop?.
-
#may_we_generate_file_skeleton? ⇒ Boolean
# === may_we_generate_file_skeleton? ========================================================================= #.
-
#mbl(i) ⇒ Object
# === mbl.
-
#menu(i = user_input? ) ⇒ Object
(also: #check_user_input_against_menu, #check_against_menu, #check_against, #evaluate_this_input)
# === menu (menu tag).
-
#menu_found_no_match_to_the_user_input_provided? ⇒ Boolean
(also: #menu_found_no_match?)
# === menu_found_no_match_to_the_user_input_provided? ========================================================================= #.
-
#merge(*i) ⇒ Object
# === merge (merge tag).
-
#merge_environment_variables(shell_env = shell_env? ) ⇒ Object
# === merge_environment_variables ========================================================================= #.
-
#merge_jpg_files_into_one_pdf_file(i) ⇒ Object
# === merge_jpg_files_into_one_pdf_file ========================================================================= #.
-
#merge_pdf_files(i) ⇒ Object
# === merge_pdf_files.
-
#mkdir(i = all_arguments?) ) ⇒ Object
# === mkdir.
-
#mkdir_and_cd(i) ⇒ Object
(also: #mkdir_or_cd)
# === mkdir_and_cd.
-
#mount(what = :cd) ⇒ Object
# === mount.
-
#mount_dvd ⇒ Object
# === mount_dvd ========================================================================= #.
-
#move_file(old, new, &block) ⇒ Object
(also: #mv)
# === move_file (mv tag, move tag).
-
#mp3_to_ogg(i) ⇒ Object
# === mp3_to_ogg ========================================================================= #.
-
#mp3_to_wav(i = this_file?) ) ⇒ Object
# === mp3_to_wav ========================================================================= #.
-
#new_cut_audio(i = all_arguments? ) ⇒ Object
# === new_cut_audio.
-
#new_konsole_tab ⇒ Object
# === new_konsole_tab ========================================================================= #.
-
#no_capslock ⇒ Object
(also: #no_caps)
# === no_capslock.
-
#no_password ⇒ Object
# === no_password ========================================================================= #.
-
#not_found_this_input(i) ⇒ Object
# === not_found_this_input.
-
#not_yet_implemented ⇒ Object
# === not_yet_implemented.
-
#notify_user(i) ⇒ Object
(also: #notify)
# === notify_user ========================================================================= #.
-
#obtain_alias_for(i) ⇒ Object
(also: #obtain_this_alias)
# === obtain_alias_for ========================================================================= #.
-
#obtain_user_input(use_readline = shall_we_use_readline_for_the_user_input? ) ⇒ Object
# === obtain_user_input.
-
#obtain_value_of_environment_variable(i, from_this_environment = shell_environment? ) ⇒ Object
(also: #obtain_value_of_this_environment_variable)
# === obtain_value_of_environment_variable ========================================================================= #.
-
#open(i = this_file? ) ⇒ Object
# === open.
-
#open_amazon(i) ⇒ Object
# === open_amazon ========================================================================= #.
-
#open_docu ⇒ Object
# === open_docu.
-
#open_in_background(i) ⇒ Object
# === open_in_background.
-
#open_in_background? ⇒ Boolean
# === open_in_background? ========================================================================= #.
-
#open_in_browser(i = last_url?, , optional_id = nil) ⇒ Object
(also: #open_in_browser_tab, #rf)
# === open_in_browser (browser tag).
-
#open_in_editor(i = this_file?, , use_this_editor = editor? ) ⇒ Object
(also: #edit, #start_editor)
# === open_in_editor (edit tag, editor tag, ed tag).
-
#open_in_leo(i) ⇒ Object
# === open_in_leo ========================================================================= #.
-
#open_in_wikipedia(i = @_) ⇒ Object
# === open_in_wikipedia.
-
#open_pdf(i) ⇒ Object
# === open_pdf.
-
#open_task(i) ⇒ Object
# === open_task ========================================================================= #.
-
#open_via_transmission(i = first_argument? ) ⇒ Object
# === open_via_transmission ========================================================================= #.
-
#optimize(i = this_file? ) ⇒ Object
# === optimize.
-
#optimize_this_png_file(i) ⇒ Object
# === optimize_this_png_file ========================================================================= #.
-
#original_user_input? ⇒ Boolean
(also: #original_input?)
# === original_user_input? ========================================================================= #.
-
#output_these_arguments(i) ⇒ Object
# === output_these_arguments.
-
#package_roebeshell_as_gem ⇒ Object
# === package_roebeshell_as_gem ========================================================================= #.
-
#pad_this_string(string, n_characters = 0) ⇒ Object
# === pad_this_string ========================================================================= #.
-
#padding(i = 2, be_verbose = true) ⇒ Object
(also: #set_padding)
# === padding.
-
#padding? ⇒ Boolean
# === padding? ========================================================================= #.
-
#pdf_viewer? ⇒ Boolean
# === pdf_viewer? ========================================================================= #.
-
#phone(where_to = 'pizza') ⇒ Object
# === phone.
-
#pid? ⇒ Boolean
# === pid?.
-
#ping(ping_target = '') ⇒ Object
# === ping (ping tag).
-
#play(i = this_file?, , optional_argument = nil) ⇒ Object
(also: #play_multimedia, #play_multimedia_file, #play_video_file)
# === play (play tag).
-
#play_classic_songs ⇒ Object
# === play_classic_songs ========================================================================= #.
-
#play_dvd ⇒ Object
# === play_dvd ========================================================================= #.
-
#play_favourite_songs(optional_action = nil) ⇒ Object
# === play_favourite_songs.
-
#play_favourite_videos(base_dir = '/home/x/video/Realvids/') ⇒ Object
# === play_favourite_videos.
-
#play_power_songs ⇒ Object
# === play_power_songs.
-
#play_random_video ⇒ Object
# === play_random_video.
-
#play_song(i = nil) ⇒ Object
(also: #play_audio, #play_audio_file, #play_songs)
# === play_song.
-
#play_video(i) ⇒ Object
# === play_video.
-
#populate_inbuilt_hash_help_options ⇒ Object
# === populate_inbuilt_hash_help_options ========================================================================= #.
-
#populate_the_environment_variables(with_this_data = :file_roeberia_settings) ⇒ Object
# === populate_the_environment_variables ========================================================================= #.
-
#possible_directory_exists_at_this_location(i) ⇒ Object
# === possible_directory_exists_at_this_location.
-
#pp_debug(i, use_cliner = false) ⇒ Object
# === pp_debug.
-
#pp_output(i) ⇒ Object
# === pp_output ========================================================================= #.
-
#prepare_the_case_parser_with_the_entries_from_the_menu_file ⇒ Object
# === prepare_the_case_parser_with_the_entries_from_the_menu_file ========================================================================= #.
-
#print_page(this_site = 'thesis.txt') ⇒ Object
# === print_page (print tag, printing tag).
-
#print_pwd(colourize_the_directory = true) ⇒ Object
# === print_pwd ========================================================================= #.
-
#process_the_user_input(i = user_input? ) ⇒ Object
# === process_the_user_input ========================================================================= #.
-
#programs_directory? ⇒ Boolean
# === programs_directory? ========================================================================= #.
-
#project_base_directory? ⇒ Boolean
# === project_base_directory? ========================================================================= #.
-
#properly_initialize_the_readline_module ⇒ Object
(also: #initialize_readline)
# === properly_initialize_the_readline_module.
-
#protect(i = get_pwd) ⇒ Object
# === protect (protect tag).
-
#protect_directory(input = return_pwd) ⇒ Object
# === protect_directory.
-
#protect_file(this_file) ⇒ Object
# === protect_file.
-
#purge(i) ⇒ Object
# === purge ========================================================================= #.
-
#purl(i = this_file? ) ⇒ Object
# === purl.
-
#pythagoras(a, b) ⇒ Object
# === pythagoras ========================================================================= #.
-
#query(i) ⇒ Object
# === query.
-
#query_length_of(i) ⇒ Object
# === query_length_of ========================================================================= #.
-
#question_answer(string = 'rand') ⇒ Object
(also: #qa)
# === question_answer.
-
#random(i = :song, optional_n_times = nil) ⇒ Object
# === random.
-
#random_colour(display_this_text = HELLO_WORLD) ⇒ Object
# === random_colour.
-
#random_string(i = 2+rand(75)) ⇒ Object
# === random_string.
-
#random_terminal_colour ⇒ Object
# === random_terminal_colour.
-
#raw_remove_directory(i) ⇒ Object
# === raw_remove_directory ========================================================================= #.
-
#raw_serve(i) ⇒ Object
# === raw_serve.
-
#rblanks_everything(i = all_arguments? ) ⇒ Object
# === rblanks_everything ========================================================================= #.
-
#rcreate_program(i = get_pwd) ⇒ Object
# === rcreate_program ========================================================================= #.
-
#read_file(i, be_verbose = false) ⇒ Object
(also: #readlines)
# === read_file.
-
#readfile(i) ⇒ Object
# === readfile.
-
#reading_now_from(target) ⇒ Object
# === reading_now_from ========================================================================= #.
-
#really_verbose_way_to_show_the_environment ⇒ Object
# === really_verbose_way_to_show_the_environment ========================================================================= #.
-
#record(what = :audio) ⇒ Object
# === record (record tag).
-
#record_tv ⇒ Object
# === record_tv ========================================================================= #.
-
#register_custom_sigint ⇒ Object
# === register_custom_sigint.
-
#register_last_command(this_command = user_input?, , be_verbose = false) ⇒ Object
# === register_last_command.
-
#register_last_directory(this_dir = nil) ⇒ Object
(also: #set_last_dir)
# === register_last_directory.
-
#register_task(specific_task_to_do, start_when = 20) ⇒ Object
# === register_task.
-
#register_that_menu_found_no_match_to_the_user_input_provided ⇒ Object
# === register_that_menu_found_no_match_to_the_user_input_provided ========================================================================= #.
-
#reload(i = :config) ⇒ Object
# === reload (reload tag) ========================================================================= #.
-
#reload? ⇒ Boolean
# === reload?.
-
#reload_aliases(aliases = aliases? ) ⇒ Object
# === reload_aliases ========================================================================= #.
-
#reload_all_files(be_verbose = true) ⇒ Object
# === reload_all_files.
-
#reload_configuration(be_verbose = true) ⇒ Object
(also: #reload_configuration_file, #reload_config)
# === reload_configuration_file.
-
#remove(i = all_arguments?, , be_verbose = true) ⇒ Object
(also: #delete)
# === remove (remove tag).
-
#remove_broken ⇒ Object
# === remove_broken.
-
#remove_directory(i = all_arguments?, , be_verbose = true) ⇒ Object
# === remove_directory.
-
#remove_favourite_audio(i) ⇒ Object
# === remove_favourite_audio.
-
#remove_file(i, be_verbose = false) ⇒ Object
# === remove_file (rm tag).
-
#remove_file_suffix(i) ⇒ Object
# === remove_file_suffix.
-
#remove_html(i) ⇒ Object
# === remove_html.
-
#remove_jumper(position) ⇒ Object
# === remove_jumper.
-
#remove_leading_file(i) ⇒ Object
# === remove_leading_file.
-
#remove_mp3_comment(i) ⇒ Object
# === remove_mp3_comment ========================================================================= #.
-
#remove_noise(i) ⇒ Object
# === remove_noise.
-
#remove_pid_entry ⇒ Object
# === remove_pid_entry.
-
#remove_quotes(i) ⇒ Object
# === remove_quotes.
-
#remove_slashes(i) ⇒ Object
# === remove_slashes.
-
#remove_user(i) ⇒ Object
# === remove_user ========================================================================= #.
-
#repackage(i = nil) ⇒ Object
# === repackage.
-
#repair(what) ⇒ Object
# === repair.
-
#repair_hdd ⇒ Object
# === repair_hdd ========================================================================= #.
-
#repair_video ⇒ Object
# === repair_video ========================================================================= #.
-
#repeat_last_action(special_action = nil, be_verbose = true) ⇒ Object
# === repeat_last_action.
-
#replace(i) ⇒ Object
# === replace (replace tag).
-
#replace_data_with_localhost(i) ⇒ Object
# === replace_data_with_localhost.
-
#replace_empty_spaces(i = @_) ⇒ Object
# === replace_empty_spaces.
-
#replace_leading_file_name(i) ⇒ Object
# === replace_leading_file_name.
-
#replay(*i) ⇒ Object
# === replay.
-
#report_browser_in_use(optional_hash = {}) ⇒ Object
# === report_browser_in_use ========================================================================= #.
-
#report_concise_documentation_for_this_method(i = :upcase) ⇒ Object
# === report_concise_documentation_for_this_method.
-
#report_dir ⇒ Object
# === report_dir.
-
#report_dirsize(this_dir = return_pwd) ⇒ Object
# === report_dirsize.
-
#report_filesize(i) ⇒ Object
# === report_filesize.
-
#report_find_results(array, match_criteria = nil) ⇒ Object
# === report_find_result.
-
#report_how_many_lines_are_shown ⇒ Object
# === report_how_many_lines_are_shown.
-
#report_last_downloaded? ⇒ Boolean
# === report_last_downloaded?.
-
#report_name_of_the_shell ⇒ Object
# === report_name_of_the_shell ========================================================================= #.
-
#report_operating_system_in_use(optional_hash = {}) ⇒ Object
# == report_operating_system_in_use ========================================================================= #.
-
#report_pdf_viewer_in_use(optional_hash = {}) ⇒ Object
# === report_pdf_viewer_in_use.
-
#report_process_id ⇒ Object
# === report_process_id.
-
#report_return_date ⇒ Object
# === report_return_date ========================================================================= #.
-
#report_ruby_version ⇒ Object
# === report_ruby_version ========================================================================= #.
-
#report_shell_version ⇒ Object
# === report_shell_version ========================================================================= #.
-
#report_size_of(target) ⇒ Object
# === report_size_of.
-
#report_subdir_size(i = return_pwd) ⇒ Object
# === report_subdir_size ========================================================================= #.
-
#report_that_gist_is_unavailable ⇒ Object
# === report_that_gist_is_unavailable ========================================================================= #.
-
#report_the_current_roebe_version_in_use ⇒ Object
# === report_the_current_roebe_version_in_use ========================================================================= #.
-
#report_the_version_of_windows ⇒ Object
# === report_the_version_of_windows ========================================================================= #.
-
#report_this_file_was_not_found(i) ⇒ Object
# === report_this_file_was_not_found.
-
#report_video_player_in_use(optional_hash = {}) ⇒ Object
(also: #show_video_player)
# === report_video_player_in_use.
-
#report_when_the_roebe_shell_was_last_updated ⇒ Object
# === report_when_the_roebe_shell_was_last_updated ========================================================================= #.
-
#report_whether_we_will_collapse ⇒ Object
# === report_whether_we_will_collapse ========================================================================= #.
-
#report_whether_we_will_log ⇒ Object
# === report_whether_we_will_log ========================================================================= #.
-
#report_whether_we_will_show_hidden_files ⇒ Object
# === report_whether_we_will_show_hidden_files ========================================================================= #.
-
#report_which_editor_is_in_use(optional_hash = {}) ⇒ Object
(also: #editor_in_use?)
# === report_which_editor_is_in_use.
-
#report_which_song_was_last_played ⇒ Object
# === report_which_song_was_last_played.
-
#require_bioroebe ⇒ Object
# === require_bioroebe ========================================================================= #.
-
#require_chemistry_paradise ⇒ Object
# === require_chemistry_paradise ========================================================================= #.
-
#require_this_via_a_thread(i) ⇒ Object
(also: #require_via_thread)
# === require_this_via_a_thread ========================================================================= #.
-
#require_webobject ⇒ Object
# === require_webobject ========================================================================= #.
-
#reset ⇒ Object
(also: #reset_variables, #initialize_dataset)
# === reset (reset tag) ========================================================================= #.
-
#reset_help_options ⇒ Object
# === reset_help_options ========================================================================= #.
-
#reset_last_result ⇒ Object
# === reset_last_result.
-
#reset_the_internal_hash_to_its_default_values ⇒ Object
(also: #reset_everything)
# === reset_the_internal_hash_to_its_default_values ========================================================================= #.
-
#reset_user_input ⇒ Object
(also: #clear_user_input)
# === reset_user_input.
-
#return_all_images(where_from = return_pwd) ⇒ Object
(also: #get_images, #get_all_images)
# === return_all_images.
-
#return_all_symlinks(where_from = return_pwd) ⇒ Object
(also: #all_symlinks, #get_all_symlinks)
# === return_all_symlinks.
-
#return_archives(from_this_directory = return_pwd) ⇒ Object
# === return_archives.
-
#return_browser_in_use(i = config?.default_browser_location) ⇒ Object
# === return_browser_in_use ========================================================================= #.
-
#return_coloured_pwd(use_colours = use_colours? ) ⇒ Object
# === return_coloured_pwd ========================================================================= #.
-
#return_configuration_methods(do_prepend_string = true) ⇒ Object
# === return_configuration_methods.
-
#return_entries_from_path(i = return_path? ) ⇒ Object
(also: #add_entries_from_path, #update_entries_from_path)
# === return_entries_from_path.
-
#return_file_for_the_editor ⇒ Object
# === return_file_for_the_editor.
-
#return_file_listing(from_this_directory = get_pwd) ⇒ Object
# === return_file_listing.
-
#return_help_menu ⇒ Object
# === return_help_menu ========================================================================= #.
-
#return_hostname ⇒ Object
(also: #get_hostname)
# === return_hostname ========================================================================= #.
-
#return_only_audio_files(input) ⇒ Object
# === return_only_audio_files.
-
#return_path_in_use ⇒ Object
(also: #return_path?, #path_to_use?, #path?)
# === return_path_in_use.
-
#return_prompt(optional_argument = '60 min') ⇒ Object
(also: #return_default_prompt)
# === return_prompt.
-
#return_random_directory ⇒ Object
# === return_random_directory ========================================================================= #.
-
#return_random_file_entry ⇒ Object
(also: #return_random_entry)
# === return_random_file_entry ========================================================================= #.
-
#return_random_number(max = 9) ⇒ Object
# === return_random_number ========================================================================= #.
-
#return_sanitized_dir ⇒ Object
(also: #get_pwd, #return_current_dir, #return_current_directory)
# === return_sanitized_dir.
-
#return_sanitized_help_menu(i) ⇒ Object
# === return_sanitized_help_menu ========================================================================= #.
-
#return_stdruby_methods ⇒ Object
# === return_stdruby_methods.
-
#return_user_input_without_trailing_comments ⇒ Object
# === return_user_input_without_trailing_comments.
-
#revert_to_defaults ⇒ Object
# === revert_to_defaults (rev tag, revert tag).
-
#rinstall1 ⇒ Object
# === rinstall1 ========================================================================= #.
-
#rinstall2 ⇒ Object
(also: #r2)
# === rinstall2 ========================================================================= #.
-
#rinvoke(*i) ⇒ Object
# === rinvoke.
-
#rip_cd ⇒ Object
# === rip_cd.
-
#ruby_src_dir_at_home? ⇒ Boolean
# === ruby_src_dir_at_home? ========================================================================= #.
-
#run ⇒ Object
# === run (run tag).
-
#run_memo_trainer ⇒ Object
(also: #memo)
run_memo_trainer (memo tag, train tag).
-
#run_pkg_config(i = 'glib-2.0') ⇒ Object
# === run_pkg_config.
-
#run_program(i, report_the_action_to_the_user = true) ⇒ Object
# === run_program.
-
#run_quiz(i = nil) ⇒ Object
# === run_quiz.
-
#run_rdate(i = '--help') ⇒ Object
# === run_rdate ========================================================================= #.
-
#run_sys_command(i = nil) ⇒ Object
(also: #run_this_system_command)
# === run_sys_command.
-
#run_tests(optional_instruction = nil) ⇒ Object
# === run_tests (test tag, tests tag).
-
#run_traverse_install ⇒ Object
# === run_traverse_install ========================================================================= #.
-
#rvid(i) ⇒ Object
# === rvid ========================================================================= #.
-
#sanitize_configuration_value(i) ⇒ Object
# === sanitize_configuration_value.
-
#save(i = '') ⇒ Object
# === save (save tag).
-
#save_buffer(extra_args = nil, be_verbose = true) ⇒ Object
# === save_buffer.
-
#save_config(optional_save_this_individual_option = nil, config = config? ) ⇒ Object
(also: #save_configuration)
# === save_config.
-
#save_yaml(data_structure, location_of_file) ⇒ Object
# === save_yaml.
-
#scan_now ⇒ Object
# === scan_now ========================================================================= #.
-
#scan_wlan ⇒ Object
# === scan_wlan.
-
#scp_transaction(mode = 'pcdata') ⇒ Object
# === scp_transaction.
-
#search_for_tag(i) ⇒ Object
# === search_for_tag ========================================================================= #.
-
#search_for_tags(i = 'pdf') ⇒ Object
# === search_for_tags.
-
#second_argument? ⇒ Boolean
(also: #s?, #second_argument)
# === second_argument? ========================================================================= #.
-
#send_email(i) ⇒ Object
# === send_email.
-
#seq_add(i = :pdf) ⇒ Object
# == seq_add.
-
#serve_local_page(this_page = nil, be_verbose = true) ⇒ Object
(also: #serve, #serve_this_webpage)
# === serve_local_page.
-
#session? ⇒ Boolean
# === session? ========================================================================= #.
-
#set(i) ⇒ Object
# === set.
-
#set_all_arguments(i) ⇒ Object
(also: #set_arguments)
# === set_all_arguments.
-
#set_background(i = all_arguments?) ) ⇒ Object
# === set_background ========================================================================= #.
-
#set_browser(i, be_verbose = false) ⇒ Object
# === set_browser.
-
#set_config_option(name_of_variable, new_value = nil) ⇒ Object
(also: #set_config)
# === set_config_option.
-
#set_editor(i = '') ⇒ Object
# === set_editor.
-
#set_file_listing(i = []) ⇒ Object
# === set_file_listing ========================================================================= #.
-
#set_head(i) ⇒ Object
# === set_head.
-
#set_is_roebe(i = true) ⇒ Object
# === set_is_roebe ========================================================================= #.
-
#set_keyboard(run_interactive = true) ⇒ Object
# === set_keyboard (keyboard tag).
-
#set_last_downloaded(i) ⇒ Object
# === set_last_downloaded ========================================================================= #.
-
#set_line_number(i = 0) ⇒ Object
# === set_line_number.
-
#set_mode(i, be_verbose = true) ⇒ Object
# === set_mode.
-
#set_original_user_input(i) ⇒ Object
(also: #set_original_input)
# === set_original_user_input ========================================================================= #.
-
#set_path(i = all_arguments?, , be_verbose = be_verbose? ) ⇒ Object
# === set_path.
-
#set_pdf_viewer(i) ⇒ Object
# === set_pdf_viewer.
-
#set_readline_completion_proc(i) ⇒ Object
(also: #set_completion_proc)
# === set_readline_completion_proc.
-
#set_shall_we_try_to_use_readline_for_the_user_input(i) ⇒ Object
(also: #set_use_readline)
# === set_shall_we_try_to_use_readline_for_the_user_input ========================================================================= #.
-
#set_skip_startup(i) ⇒ Object
# === set_skip_startup ========================================================================= #.
-
#set_use_colours(i = false) ⇒ Object
# === set_use_colours.
-
#set_use_history(i) ⇒ Object
# === set_use_history ========================================================================= #.
-
#set_use_this_prompt(i = DEFAULT_PROMPT, be_verbose = false) ⇒ Object
(also: #set_prompt, #initialize_prompt)
# === use_this_prompt (set tag, prompt tag).
-
#set_user_input(i) ⇒ Object
# === set_user_input.
-
#set_user_input_and_decide_on_action(i) ⇒ Object
(also: #suiadoa)
# === set_user_input_and_decide_on_action.
-
#set_video_player(i) ⇒ Object
(also: #set_audio_player)
# === set_video_player.
-
#set_windows_title(i = all_arguments?) ) ⇒ Object
# === set_windows_title.
-
#set_xorg_buffer(i, be_verbose = true) ⇒ Object
# === set_xorg_buffer.
-
#sfancy(i = '', use_colours = use_colours? ) ⇒ Object
# === sfancy ========================================================================= #.
-
#shall_we_log_the_user_input_history? ⇒ Boolean
(also: #use_history?)
# === shall_we_log_the_user_input_history?.
-
#shall_we_use_readline_for_the_user_input? ⇒ Boolean
(also: #use_readline?)
# === shall_we_use_readline_for_the_user_input?.
-
#shebang_fix_my_ruby_files ⇒ Object
# === shebang_fix_my_ruby_files.
-
#shell_environment? ⇒ Boolean
(also: #shell_env?)
# === shell_environment? ========================================================================= #.
-
#shorten_directory_names(be_verbose = true) ⇒ Object
# === shorten_directory_names.
-
#show(i) ⇒ Object
# === show (show tag).
-
#show_alias(i) ⇒ Object
# === show_alias.
-
#show_aliases ⇒ Object
# === show_aliases.
-
#show_all_parameters_of_all_methods_in_the_project ⇒ Object
# === show_all_parameters_of_all_methods_in_the_project.
-
#show_appointments ⇒ Object
# === show_appointments (Termine tag, appointments tag).
-
#show_array_threads ⇒ Object
# === show_array_threads ========================================================================= #.
-
#show_available_components ⇒ Object
# === show_available_components ========================================================================= #.
-
#show_available_fonts ⇒ Object
# === show_available_fonts ========================================================================= #.
-
#show_available_generate_actions ⇒ Object
# === show_available_generate_actions ========================================================================= #.
-
#show_browser_in_use ⇒ Object
# === show_browser_in_use.
-
#show_calendar(which_month = ::Roebe::CURRENT_MONTH) ⇒ Object
# === show_calendar.
-
#show_clipboard_buffer(user_input = 'buffer') ⇒ Object
# === show_clipboard_buffer.
-
#show_comment_from(i) ⇒ Object
# === show_comment_from.
-
#show_completable_commands ⇒ Object
# === show_completable_commands.
-
#show_config_directory(optional_padding = N) ⇒ Object
# === show_config_directory.
-
#show_configuration(be_verbose = true) ⇒ Object
# === show_configuration (config tag).
-
#show_default_applications ⇒ Object
# === show_default_applications ========================================================================= #.
-
#show_default_pdf_viewer ⇒ Object
# === show_default_pdf_viewer.
-
#show_dichte(this_file = shell_env?['SCIENCE'].to_s+'/YAML/dichte.yml') ⇒ Object
# === show_dichte.
-
#show_directories ⇒ Object
(also: #show_directory_listing, #show_only_directories)
# === show_directories.
-
#show_directory_content(from_where = return_pwd, also_show_hidden_files = show_hidden_files?, , show_only_directories = false) ⇒ Object
(also: #display_directory_content)
# === show_directory_content.
-
#show_documentation_for(i) ⇒ Object
(also: #show_documentation_for?)
# === show_documentation_for.
-
#show_documentation_of?(i = all_arguments?, , output_the_result = true) ⇒ Boolean
(also: #show_documentation_of)
# === show_documentation_of? (docu tag).
-
#show_duration_of(i) ⇒ Object
# === show_duration_of.
-
#show_environment(env = shell_env?, , n_padding_to_the_left_side = 32) ⇒ Object
# === show_environment (env tag, environment tag).
-
#show_exams ⇒ Object
# === show_exams.
-
#show_favourite_audiofiles ⇒ Object
# === show_favourite_audiofiles ========================================================================= #.
-
#show_file_listing(of_this_directory = :default) ⇒ Object
# === show_file_listing ========================================================================= #.
-
#show_fstab ⇒ Object
# === show_fstab ========================================================================= #.
-
#show_ftp_hosts ⇒ Object
# === show_ftp_hosts.
-
#show_full_configuration ⇒ Object
# === show_full_configuration ========================================================================= #.
-
#show_games ⇒ Object
# === show_games.
-
#show_general_debug_related_information ⇒ Object
(also: #general_debug)
# === show_general_debug_related_information.
-
#show_groups ⇒ Object
# === show_groups ========================================================================= #.
-
#show_hdd_info ⇒ Object
# === show_hdd_info.
-
#show_help ⇒ Object
# === show_help (help tag).
-
#show_help_for_backup ⇒ Object
# === show_help_for_backup (backup help tag) ========================================================================= #.
-
#show_help_on_first_startup ⇒ Object
# === show_help_on_first_startup.
-
#show_help_options_intro ⇒ Object
# === show_help_options_intro.
-
#show_hidden ⇒ Object
# === show_hidden ========================================================================= #.
-
#show_hidden_files? ⇒ Boolean
# === show_hidden_files?.
-
#show_history(show_numbers_as_well = false) ⇒ Object
(also: #history?)
# === show_history.
-
#show_how_many_lines_can_be_found_in_this_file(i) ⇒ Object
# === show_how_many_lines_can_be_found_in_this_file ========================================================================= #.
-
#show_how_many_songs_are_available_locally(from_this_directory = '/home/x/songs/') ⇒ Object
# === show_how_many_songs_are_available_locally ========================================================================= #.
-
#show_html_colours ⇒ Object
# === show_html_colours.
-
#show_jumpers ⇒ Object
(also: #display_available_jumpers, #show_setpoints, #setpoints?)
# === show_jumpers.
-
#show_last_command ⇒ Object
# === show_last_command.
-
#show_last_user_input ⇒ Object
# === show_last_user_input.
-
#show_line_number_in_this_file(line_number, this_file) ⇒ Object
# === show_line_number_in_this_file.
-
#show_location_of_pid_file(i = ::Roebe::Shell.pid_file?) ⇒ Object
# === show_location_of_pid_file ========================================================================= #.
-
#show_logfile_for_history ⇒ Object
# === show_logfile_for_history ========================================================================= #.
-
#show_map(which_map = :vienna, strasse = '', hausnummer = '') ⇒ Object
# === show_map (map tag).
-
#show_message(i = nil) ⇒ Object
# === show_message.
-
#show_missing_components ⇒ Object
# === show_missing_components.
-
#show_mode ⇒ Object
# === show_mode.
-
#show_modification_time? ⇒ Boolean
# === show_modification_time? ========================================================================= #.
-
#show_modules ⇒ Object
# === show_modules.
-
#show_mudaliases(file_to_mud_aliases = shell_env?['MUDS'].to_s+'/YAML/std_mud_aliases.yml') ⇒ Object
# === show_mudaliases.
-
#show_my_videos ⇒ Object
# === show_my_videos.
-
#show_n_lines? ⇒ Boolean
# === show_n_lines? ========================================================================= #.
-
#show_news(i = :all) ⇒ Object
# === show_news.
-
#show_only_files(optional_directory = :default) ⇒ Object
# === show_only_files ========================================================================= #.
-
#show_padding ⇒ Object
# === show_padding (pad tag, padding tag).
-
#show_path_in_use ⇒ Object
# === show_path_in_use ========================================================================= #.
-
#show_processes ⇒ Object
# === show_processes ========================================================================= #.
-
#show_prompt_help_options ⇒ Object
# === show_prompt_help_options.
-
#show_ruby_header ⇒ Object
# === show_ruby_header ========================================================================= #.
-
#show_ruby_keywords(show_index = true) ⇒ Object
# === show_ruby_keywords.
-
#show_slogans(target = '/home/x/DATA/misc/yaml/slogans.yml') ⇒ Object
# === show_slogans.
-
#show_source_of?(i = nil) ⇒ Boolean
(also: #show_source_of)
# === show_source_of?.
-
#show_statistical_information_about_the_environment(i = shell_env? ) ⇒ Object
# === show_statistical_information_about_the_environment ========================================================================= #.
-
#show_task ⇒ Object
# === show_task (task tag).
-
#show_tasks(file = shell_env?['MY_TODO'].to_s+'/yaml/tasks.yml') ⇒ Object
# === show_tasks (tasks tag).
-
#show_the_available_display_options ⇒ Object
# === show_the_available_display_options ========================================================================= #.
-
#show_the_environment_keys_and_state_how_many_keys_there_are(shell_env = shell_env? ) ⇒ Object
# === show_the_environment_keys_and_state_how_many_keys_there_are ========================================================================= #.
-
#show_the_methods_in_this_file(i) ⇒ Object
# === show_the_methods_in_this_file ========================================================================= #.
-
#show_the_playlist_or_play_songs_stored_in_the_playlist(i = all_arguments? ) ⇒ Object
# === show_the_playlist_or_play_songs_stored_in_the_playlist ========================================================================= #.
-
#show_the_status(we_use_these_components = load_which_components? ) ⇒ Object
# === show_the_status (status tag) ========================================================================= #.
-
#show_time(append_newline = false) ⇒ Object
# === show_time.
-
#show_todo(which_todo = :normal_todo) ⇒ Object
# === show_todo ========================================================================= #.
-
#show_tv_channels ⇒ Object
# === show_tv_channels ========================================================================= #.
-
#show_upcoming_exams(n_upcoming_exams = 100) ⇒ Object
# === show_upcoming_exams ========================================================================= #.
-
#show_valid_regexes ⇒ Object
# === show_valid_regexes.
-
#show_variables ⇒ Object
# === show_variables.
-
#show_various_configuration_keys ⇒ Object
# === show_various_configuration_keys.
-
#show_webserver_log ⇒ Object
# === show_webserver_log ========================================================================= #.
-
#show_whether_we_will_debug ⇒ Object
# === show_whether_we_will_debug ========================================================================= #.
-
#show_whether_xorg_is_running ⇒ Object
# === show_whether_xorg_is_running.
-
#show_xorg_buffer ⇒ Object
# === show_xorg_buffer ========================================================================= #.
-
#shuffle_file_listing(file_listing = file_listing? ) ⇒ Object
# === shuffle_file_listing ========================================================================= #.
-
#shutdown ⇒ Object
# === shutdown ========================================================================= #.
-
#shutdown_windows ⇒ Object
# === shutdown_windows ========================================================================= #.
-
#silent_redirection? ⇒ Boolean
# === silent_redirection? ========================================================================= #.
-
#simple_index ⇒ Object
# === simple_index ========================================================================= #.
-
#skip_startup? ⇒ Boolean
# === skip_startup? ========================================================================= #.
-
#sleep_for(amount = 30, unit = 'seconds') ⇒ Object
# === sleep_for.
-
#sort_by(i = :size) ⇒ Object
# === sort_by.
-
#sort_by_archives_last(i) ⇒ Object
# === sort_by_archives_last.
-
#split(i = []) ⇒ Object
# === split (split tag) ========================================================================= #.
-
#split_pdf(file) ⇒ Object
# === split_pdf.
-
#ssh_login ⇒ Object
# === ssh_login.
-
#start(i = :webrick, optional_hash = {}) ⇒ Object
# === start (start tag).
-
#start_a_new_session ⇒ Object
# === start_a_new_session ========================================================================= #.
-
#start_clock_counter ⇒ Object
# === start_clock_counter ========================================================================= #.
-
#start_irb ⇒ Object
# === start_irb ========================================================================= #.
-
#start_irc ⇒ Object
# === start_irc.
-
#start_my_default_webrick_server(optional_arguments = all_arguments?, , &block) ⇒ Object
# === start_my_default_webrick_server ========================================================================= #.
-
#start_the_bioroebe_shell ⇒ Object
# === start_the_bioroebe_shell ========================================================================= #.
-
#start_the_roebe_controller ⇒ Object
# === start_the_roebe_controller.
-
#start_the_ruby_gtk_shell ⇒ Object
# === start_the_ruby_gtk_shell ========================================================================= #.
-
#start_vte ⇒ Object
# === start_vte ========================================================================= #.
-
#start_webrick_server(which_document_root_to_use = env?['MY_DATA'], do_daemonize = false) ⇒ Object
# === start_webrick_server.
-
#start_webrick_server_at_port_and_document_root(use_this_port = 2002, which_document_root_to_use = '/') ⇒ Object
# === start_webrick_server_at_port_and_document_root.
-
#stat_file(this_file) ⇒ Object
# === stat_file.
-
#stat_files(input = this_file? ) ⇒ Object
# === stat_files.
-
#store_html_page(this_page, be_verbose = true) ⇒ Object
# === store_html_page.
-
#store_pid(i = Process.pid) ⇒ Object
(also: #store_this_pid, #store_these_pid_entries)
# === store_pid.
-
#strip_comments(i) ⇒ Object
# === strip_comments.
-
#strip_user_input(i = user_input? ) ⇒ Object
# === strip_user_input ========================================================================= #.
-
#swarn(i = '', use_colours = use_colours? ) ⇒ Object
# === swarn ========================================================================= #.
-
#switch(i = :colours) ⇒ Object
# === switch.
-
#switch_colours ⇒ Object
# === switch_colours.
-
#symlink(old = nil, new = nil) ⇒ Object
# === symlink ========================================================================= #.
-
#symlink_directory(i = get_pwd) ⇒ Object
(also: #symlink_dir)
# === symlink_directory.
-
#sync_environment_variables ⇒ Object
# === sync_environment_variables.
-
#system_checker ⇒ Object
# === system_checker ========================================================================= #.
-
#taskkill_this_PID(i) ⇒ Object
# === taskkill_this_PID.
-
#tell_us_whether_this_program_exists(i) ⇒ Object
# === tell_us_whether_this_program_exists.
-
#test_colours ⇒ Object
# === test_colours.
-
#test_glob(i) ⇒ Object
# === test_glob ========================================================================= #.
-
#test_this_input(i) ⇒ Object
# === test_this_input ========================================================================= #.
-
#the_given_command_has_been_found_in_the_menu? ⇒ Boolean
(also: #menu_found_a_match_to_the_user_input_provided?, #menu_found_a_match?)
# === the_given_command_has_been_found_in_the_menu? ========================================================================= #.
-
#to_ascii(this_file = @_, batch_mode_was_given = false) ⇒ Object
# === to_ascii.
-
#to_html(i = return_all_files) ⇒ Object
# === to_html.
-
#toggle(i = all_arguments? ) ⇒ Object
# === toggle (toggle tag).
-
#toggle_and_report_simulate(config = config?) ) ⇒ Object
# === toggle_and_report_simulate ========================================================================= #.
-
#toggle_boolean(i) ⇒ Object
# === toggle_boolean.
-
#toggle_collapse(optional_argument = nil) ⇒ Object
# === toggle_collapse.
-
#toggle_debug ⇒ Object
# === toggle_debug ========================================================================= #.
-
#toggle_hide ⇒ Object
# === toggle_hide.
-
#toggle_mode(optional_new_mode = nil) ⇒ Object
# === toggle_mode.
-
#toggle_shorten ⇒ Object
# === toggle_shorten ========================================================================= #.
-
#trainer(which_mode = :aminoacids) ⇒ Object
# === trainer (train tag).
-
#translate(from_language_to_language = :english_to_german, word_to_be_translated = :random) ⇒ Object
# === translate (translate tag, trans tag).
-
#translate_aminoacid(i) ⇒ Object
# === translate_aminoacid.
-
#treeview(i = return_pwd) ⇒ Object
# === treeview.
-
#trigger(i) ⇒ Object
# === trigger ========================================================================= #.
-
#trigger_actions(i) ⇒ Object
# === trigger_actions.
-
#try_call_method(i, be_verbose = true) ⇒ Object
(also: #try_to_invoke_this_method)
# === try_call_method.
-
#try_to_find_this_ivar(i, be_verbose = true) ⇒ Object
(also: #show_ivar, #report_this_ivar)
# === try_to_find_this_ivar (ivar tag).
-
#try_to_get_a_configuration_option(i = 'configuration.padding') ⇒ Object
# === try_to_get_a_configuration_option.
-
#try_to_get_a_configuration_value(i) ⇒ Object
# === try_to_get_a_configuration_value.
-
#try_to_install_this_gem(i = first_argument? ) ⇒ Object
(also: #gem_install)
# === try_to_install_this_gem.
-
#try_to_invoke_this(i) ⇒ Object
# === try_to_invoke_this.
-
#try_to_load_buffer ⇒ Object
# === try_to_load_buffer.
-
#try_to_report_which_http_links_are_available ⇒ Object
# === try_to_report_which_http_links_are_available ========================================================================= #.
-
#try_to_restore_the_gem_credentials_file(this_file = '/home/x/programming/ruby/src/gem/credentials') ⇒ Object
# === try_to_restore_the_gem_credentials_file.
-
#try_to_run_the_ascii_paradise_demo ⇒ Object
# === try_to_run_the_ascii_paradise_demo ========================================================================= #.
-
#try_to_sanitize_time_string(i) ⇒ Object
# === try_to_sanitize_time_string.
-
#try_to_set_a_configuration_value(i) ⇒ Object
# === try_to_set_a_configuration_value.
-
#try_to_show_the_weather ⇒ Object
# === try_to_show_the_weather ========================================================================= #.
-
#try_to_use_readline? ⇒ Boolean
# === try_to_use_readline? ========================================================================= #.
-
#try_to_use_the_irb_drop_addon ⇒ Object
# === try_to_use_the_irb_drop_addon ========================================================================= #.
-
#umount(i = all_arguments? ) ⇒ Object
# === umount ========================================================================= #.
-
#unalias(i) ⇒ Object
# === unalias.
-
#undo(i = 'default') ⇒ Object
# === undo.
-
#undo_move_action(undo_moves = array_undo_moves? ) ⇒ Object
# === undo_move_action.
-
#unicode_cliner ⇒ Object
# === unicode_cliner ========================================================================= #.
-
#unprotect(i) ⇒ Object
(also: #deprotect)
# === unprotect ========================================================================= #.
-
#unprotect_directory(i) ⇒ Object
# === unprotect_directory.
-
#unprotect_file(this_file) ⇒ Object
# === unprotect_file.
-
#unshorten_directory_names(be_verbose = true) ⇒ Object
# === unshorten_directory_names ========================================================================= #.
-
#upcase(i = file_listing? ) ⇒ Object
# === upcase.
-
#update(i = all_arguments?) ) ⇒ Object
# === update (update tag).
-
#update_aliases ⇒ Object
# === update_aliases.
-
#update_cookbook_entry(i) ⇒ Object
# === update_cookbook_entry.
-
#update_exams ⇒ Object
# === update_exams ========================================================================= #.
-
#update_ftp(ftp = ftp?) ) ⇒ Object
# === update_ftp.
-
#update_left_padding ⇒ Object
(also: #load_left_padding)
# === update_left_padding.
-
#update_system_libraries ⇒ Object
# === update_system_libraries.
-
#upload(i, ftp_mode_to_use = :ascii, do_try_to_login = true) ⇒ Object
# === upload.
-
#upload_screenshot(i = this_file?, , connect_to = :SHEVY) ⇒ Object
# === upload_screenshot.
-
#upload_screenshots? ⇒ Boolean
(also: #upload_screenshots)
# === upload_screenshots?.
-
#url(i) ⇒ Object
# === url (url tag).
-
#use(i) ⇒ Object
# === use.
-
#use_aliases?(config = config? ) ⇒ Boolean
# === use_aliases? ========================================================================= #.
-
#use_coderay? ⇒ Boolean
# === use_coderay?.
-
#use_colours?(config = config? ) ⇒ Boolean
# === use_colours?.
-
#use_command_at_history_position(this_position = 1) ⇒ Object
# === use_command_at_history_position.
-
#use_configuration_file? ⇒ Boolean
# === use_configuration_file?.
-
#use_dictionary? ⇒ Boolean
# === use_dictionary?.
-
#use_ftp? ⇒ Boolean
# === use_ftp?.
-
#use_irb_drop? ⇒ Boolean
# === use_irb_drop?.
-
#use_this_config(i = 'linux') ⇒ Object
# === use_this_config.
-
#use_which_browser? ⇒ Boolean
# === use_which_browser? ========================================================================= #.
-
#user_input? ⇒ Boolean
(also: #user_input_object?)
# === user_input? ========================================================================= #.
-
#user_input_includes_quotes? ⇒ Boolean
(also: #does_it_include_quotes?)
# === user_input_includes_quotes? ========================================================================= #.
-
#user_interaction_change_prompt(ask_user = true) ⇒ Object
# === user_interaction_change_prompt.
-
#userfind(i) ⇒ Object
# === userfind.
-
#verbose_answer_does_this_file_exist?(i) ⇒ Boolean
# === verbose_answer_does_this_file_exist? ========================================================================= #.
-
#verbose_report_whether_numbers_will_be_autoconverted ⇒ Object
# === verbose_report_whether_numbers_will_be_autoconverted ========================================================================= #.
-
#verbose_toggle_user_input ⇒ Object
# === verbose_toggle_user_input ========================================================================= #.
-
#version(of_what = :default) ⇒ Object
(also: #show_version)
# === version.
-
#video_player? ⇒ Boolean
# === video_player? ========================================================================= #.
-
#watch(what) ⇒ Object
# === watch.
-
#wav_to_midi(i) ⇒ Object
# === wav_to_midi ========================================================================= #.
-
#wav_to_mp3(i = '') ⇒ Object
# === wav_to_mp3.
-
#wav_to_ogg(i) ⇒ Object
# === wav_to_ogg ========================================================================= #.
-
#wecker(wait_for_how_long = nil) ⇒ Object
(also: #trigger_wecker)
# === wecker.
-
#where_can_this_program_be_found?(i) ⇒ Boolean
# === where_can_this_program_be_found?.
-
#where_is?(i = all_arguments? ) ⇒ Boolean
# === where_is?.
-
#which_platform? ⇒ Boolean
# === which_platform?.
-
#which_windowmanager_is_running? ⇒ Boolean
# === which_windowmanager_is_running?.
-
#whoami ⇒ Object
# === whoami.
-
#will_we_debug? ⇒ Boolean
(also: #debug?)
# === will_we_debug?.
-
#will_we_show_the_absolute_path?(optional_hash = {}) ⇒ Boolean
# === will_we_show_the_absolute_path? ========================================================================= #.
-
#will_we_use_colours? ⇒ Boolean
# === will_we_use_colours?.
-
#windows(i = all_arguments? ) ⇒ Object
# === windows.
-
#windows_driveryquery ⇒ Object
# === windows_driveryquery.
-
#windows_install_chocolatey ⇒ Object
# === windows_install_chocolatey (choco tag).
-
#windows_install_nano ⇒ Object
# === windows_install_nano ========================================================================= #.
-
#wochentag_anzeiger ⇒ Object
# === wochentag_anzeiger ========================================================================= #.
-
#word_wrap(i = '', line_width = 80, optional_padding = '') ⇒ Object
# === word_wrap.
-
#xorg_buffer_empty? ⇒ Boolean
# === xorg_buffer_empty? ========================================================================= #.
-
#yaml_configuration? ⇒ Boolean
# === yaml_configuration?.
-
#yes_the_given_command_has_been_found_in_the_menu ⇒ Object
# === yes_the_given_command_has_been_found_in_the_menu ========================================================================= #.
Methods included from Time
dd_mm_yyyy, get_current_month, #get_current_month, hh_mm_ss, #return_current_year, return_current_year, show_time
Methods inherited from Base
#append_this_onto_that_file, #be_silent, #be_verbose?, #beautiful_url, #bold_blue, #burlywood, #call_next, #chdir, #cheerful_guy, #convert_global_env, #cornflowerblue, #crimson, #current_month?, #current_time?, #current_year?, #cyan, #darkcyan, #darkgreen, #darkslateblue, #deeppink, #ecomment, #editor_to_use?, #efancy, #eimp, #ensure_main_encoding, #ensure_utf_encoding, #eparse, #erev, #esystem_colourized, #ewarn, #firebrick, #get_current_day, #get_current_month, #get_german_name_for_this_weekday, #gold, #grey, #hh_mm_ss, #home_directory_of_user_x?, #is_a_file?, #is_an_image_file?, #is_audio_file?, #is_in_studium_dir?, #is_multimedia_file?, #is_symlink?, #is_this_a_ruby_file?, #iso_encoding?, #left_colour, #lightblue, #lightgreen, #lightseagreen, #lime, #localhost_to_data, #mediumorchid, #mediumpurple, #mediumseagreen, #mediumspringgreen, #mediumturquoise, #n_days_in_this_month, #no_file_exists_at, #olivedrab, #opne, #opnn, #orange, #orchid, #palegoldenrod, #palevioletred, #pink, #powderblue, #programs_dir?, #random_html_colour, #rds, #read_file_in_iso_encoding, #read_file_via_the_default_encoding, #read_lines_via_iso_encoding, #readlines_with_main_encoding, #red, #register_sigint, #rename_kde_konsole_tab, #replace_localhost_with_data, #return_all_directories_from_this_directory, #return_dd_mm_yyyy, #return_file_or_directory_of, #return_files_from_pwd, #return_last_part_of_the_current_directory, #return_utc, #rev, #right_arrow?, #right_colour, #rosybrown, #royalblue, #ruby_base_directory?, #run_in_background, #run_rcfiles_then_run_ata_via_qdbus, #sandybrown, #sdir, #seagreen, #set_be_verbose, #sfile, #simp, #skyblue, #slateblue, #slategray, #springgreen, #steelblue, #teal, #to_camelcase, #tomato, #verbose_truth, #weekday?, #write_what_into, #yellow
Methods included from Base::CommandlineArguments
#clear_commandline_arguments, #commandline_arguments_as_string?, #commandline_arguments_without_leading_hyphens?, #first_argument_without_leading_hyphens?, #has_an_argument_been_passed?, #return_commandline_arguments_with_leading_hyphens, #set_commandline_arguments
Constructor Details
#initialize(commandline_arguments = ARGV, run_already = true, &block) ⇒ Shell
#
initialize
#
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 |
# File 'lib/roebe/shell/shell/shell.rb', line 1067 def initialize( commandline_arguments = ARGV, run_already = true, &block ) register_custom_sigint reset # ======================================================================= # # Register the commandline arguments next: # ======================================================================= # ::Roebe::Shell.set_commandline_arguments( commandline_arguments ) set_commandline_arguments( commandline_arguments ) # ======================================================================= # # The following check also ensures that symbol-instructions such as # :do_not_run_main_loop will be honoured. This may be revisited at # a later time, but for now it will remain as it is. (If a problem # is encountered, it will be mentioned here.) # ======================================================================= # if commandline_arguments.to_s.include?('dont') or commandline_arguments.to_s.include?('do_not') commandline_arguments = nil run_already = false end # ======================================================================= # # === Handle blocks next # ======================================================================= # if block_given? yielded = yield case yielded # ===================================================================== # # === :be_quiet # ===================================================================== # when :be_quiet, :be_silent be_quiet # ===================================================================== # # === :do_not_enter_the_main_loop # ===================================================================== # when :do_not_enter_the_main_loop run_already = false # =================================================================== # # We will still run startup() actions, though. # =================================================================== # startup else # =================================================================== # # Next handle Hashes # =================================================================== # if yielded.is_a? Hash # ================================================================= # # === :be_quiet # # We must use ! because "yes, be quiet" is opposite to "yes, # be verbose", as implied by the setter-method set_be_verbose(). # ================================================================= # if yielded.has_key? :be_quiet set_be_verbose(!yielded[:be_quiet]) end # ================================================================= # # === :enable_debug # ================================================================= # if yielded.has_key? :enable_debug Roebe::Shell.set_debug(yielded[:enable_debug]) end # ================================================================= # # === :use_history # ================================================================= # if yielded.has_key? :use_history set_use_history(yielded[:use_history]) end # ================================================================= # # === :enable_readline # ================================================================= # if yielded.has_key? :enable_readline set_use_readline(yielded[:enable_readline]) end # ================================================================= # # === :use_configuration # ================================================================= # if yielded.has_key? :use_configuration set_use_configuration(yielded[:use_configuration]) end # ================================================================= # # === :use_colours # ================================================================= # if yielded.has_key? :use_colours if yielded[:use_colours] == false disable_colours(true, :be_quiet) end end # ================================================================= # # === :skip_startup # ================================================================= # if yielded.has_key? :skip_startup set_skip_startup(yielded[:skip_startup]) end # ================================================================= # # === :is_roebe # ================================================================= # if yielded.has_key? :is_roebe set_is_roebe(yielded[:is_roebe]) end # ================================================================= # # === :assign_to_this_file # ================================================================= # if yielded.has_key? :assign_to_this_file set_this_file(yielded[:assign_to_this_file]) end # ================================================================= # # === :run_this_method # # This will run the method, if found, then exit the shell. # ================================================================= # if yielded.has_key? :run_this_method be_quiet try_to_invoke_this_method(yielded[:run_this_method], true) exit_shell end end end end case run_already # ======================================================================= # # === :do_not_run_yet # ======================================================================= # when :do_not_run_yet run_already = false end run if run_already end |
Class Method Details
.append_to_the_array_roebe_shell_case_options(i) ⇒ Object
#
Roebe::Shell.append_to_the_array_roebe_shell_case_options
#
189 190 191 192 193 194 195 196 |
# File 'lib/roebe/shell/shell/shell.rb', line 189 def self.(i) @array_roebe_shell_case_options << i # ======================================================================= # # And always sanitize it afterwards. # ======================================================================= # @array_roebe_shell_case_options.flatten! @array_roebe_shell_case_options.compact! end |
.array_documented_help_options ⇒ Object
#
Roebe::Shell.array_documented_help_options
#
241 242 243 |
# File 'lib/roebe/shell/help/documented_help_options.rb', line 241 def self. Roebe::Shell::DocumentedHelpOptions. end |
.array_help_options ⇒ Object
#
Roebe::Shell.array_help_options
#
449 450 451 |
# File 'lib/roebe/shell/shell/shell.rb', line 449 def self. HELP_OPTIONS end |
.array_roebe_shell_case_options ⇒ Object
#
Roebe::Shell.array_roebe_shell_case_options
#
182 183 184 |
# File 'lib/roebe/shell/shell/shell.rb', line 182 def self. @array_roebe_shell_case_options end |
.available_components? ⇒ Boolean
#
Roebe::Shell.available_components
#
26 27 28 |
# File 'lib/roebe/shell/module_methods/available_components.rb', line 26 def self.available_components? @available_components end |
.check_upcoming_exams=(i) ⇒ Object
#
Roebe::Shell.check_upcoming_exams=
#
26 27 28 |
# File 'lib/roebe/shell/module_methods/anmeldung.rb', line 26 def self.check_upcoming_exams=(i) @check_upcoming_exams = to_bool(i) end |
.check_upcoming_exams? ⇒ Boolean
#
Roebe::Shell.check_upcoming_exams?
#
40 41 42 |
# File 'lib/roebe/shell/module_methods/anmeldung.rb', line 40 def self.check_upcoming_exams? @check_upcoming_exams end |
.commandline_arguments? ⇒ Boolean
#
Roebe::Shell.commandline_arguments?
#
31 32 33 |
# File 'lib/roebe/shell/module_methods/commandline_arguments.rb', line 31 def self.commandline_arguments? @commandline_arguments end |
.config_directory? ⇒ Boolean
#
Roebe::Shell.config_directory?
This would output a directory such as:
/home/Programs/Ruby/2.7.1/lib/ruby/site_ruby/2.7.0/roebe/shell/yaml/configuration/
#
154 155 156 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 154 def self.config_directory? "#{::Roebe::Shell.yaml_directory?}configuration/" end |
.configuration? ⇒ Boolean
#
Roebe::Shell.configuration?
Class method via the @configuration variable.
#
119 120 121 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 119 def self.configuration? @configuration end |
.contains_a_valid_help_option?(i) ⇒ Boolean
#
Roebe::Shell.contains_a_valid_help_option?
This method will return true or false. False by default, and true if the given input will contain any argument.
#
91 92 93 94 95 96 97 98 99 |
# File 'lib/roebe/shell/help/help.rb', line 91 def self.contains_a_valid_help_option?(i) return_value = false if i.is_a? Array if i.any? {|entry| Roebe::Shell..include?(entry) } return_value = true end end return return_value end |
.create_manual(use_this_object = nil) ⇒ Object
#
Roebe::Shell.create_manual
This method can be used to create a .pdf manual.
You can pass an object-instance to this method if you want to.
#
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/roebe/shell/module_methods/misc.rb', line 64 def self.create_manual( use_this_object = nil # <- This can be a new instance of the Roebe::Shell class. ) require 'prawn' # ======================================================================= # # Checking whether the user has Prawn installed. # ======================================================================= # if Object.const_defined? :Prawn if use_this_object if use_this_object.is_a?(Hash) and use_this_object.has_key?(:use_this_object) _ = use_this_object.delete :use_this_object else # Else direct assignment. _ = use_this_object end else _ = Roebe::Shell.new(:do_not_run_main_loop) end diamondshell_logo = _.sanitize_url(:diamond_logo).location? # Must come very early. diatutorial_page = _.pretty_url(:diatutorial).result # ===================================================================== # # diatutorial_page can be an Array. But we need a String. # ===================================================================== # if diatutorial_page.is_a? Array diatutorial_page = diatutorial_page.first end this_page = _.replace_data_with_localhost(diatutorial_page) this_page = this_page.first if this_page.is_a? Array # ===================================================================== # # The variable this_page will hold the link towards our tutorial. # ===================================================================== # _.serve_local_page(this_page) # ===================================================================== # # First, we will tell the user where to store. # ===================================================================== # store_where = _.log_dir?+'diamondshell_manual_'+_.return_date+'.pdf' _.remove(store_where) if File.exist? store_where cliner { e 'We will store the manual for the DiamondShell at:' e ' '+sfile(store_where) } html_manual = _.log_dir?+'ROEBE_SHELL_TUTORIAL.html' _.remove_html(html_manual) if File.exist? html_manual if _._.empty? # This is @_. _._ = _.serve(:diacgi, false) # false for "don't be verbose". bl $DIA/base/serve.rb _._ = _.remove_html(html_manual) # This should assign to @_ end pdf = Prawn::Document.new(page_size: 'A4') pdf.font 'Times-Roman' pdf.font_size(15) # General font size. pdf.text 'Roebe::Shell Manual' pdf.fill_color '#000000' # This is the black colour. pdf.move_down 25 pdf.indent(5) { pdf.text( 'The Roebe::Shell Manual', size: 32, fill_color: 'red' ) } pdf.start_new_page pdf.move_down 25 pdf.image(diamondshell_logo, width: 48, height: 48) pdf.move_down 15 _.usher.reset # Store into usher. For this to work, @_ must be assigned. # ===================================================================== # # Note that @_ would refer to something like: # # /root/roebe_shell/DIAMOND_SHELL_TUTORIAL.html # # ===================================================================== # if File.exist? _._ e 'Now reading in the file `'+sfile(_._)+'`.' _._ = File.read(_._) else e swarn('No file at ')+sfile(_._)+swarn(' exists.') end html_content = _._.split(N) if _._.is_a? String html_content.each {|line| if line.include? '<body' # We seek for the <body> tag. e 'We found a <body> tag.' _.usher.open end _.usher << "#{line}#{N}" # Try to append. } array = _.usher.array array = array.map { |entry| WebObject.remove_html(entry).strip }.reject(&:empty?) array.each {|line| line << N if line.include? '<br' unless line.empty? pdf.indent(1) { pdf.text(line) } end } _.delete(store_where) if File.exist? store_where # Get rid of old .pdf file. # ===================================================================== # # Next we will store the .pdf file finally. # ===================================================================== # pdf.render_file(store_where) # Render it now. opn namespace: NAMESPACE e 'We will store at' opn namespace: NAMESPACE e " `#{sfile(store_where)}`" e opn namespace: NAMESPACE e 'You could open this in a pdf viewer next, if you would '\ 'like to. Just do:' opn namespace: NAMESPACE e ' open THIS_FILE' _.assign_file(store_where) else # Prawn is unavailable. opn namespace: NAMESPACE e 'Prawn is not available. Please install it first.' end end |
.debug? ⇒ Boolean
#
Roebe::Shell.debug?
#
103 104 105 106 107 108 109 |
# File 'lib/roebe/shell/shell/core/debug.rb', line 103 def self.debug? if configuration? and configuration?.respond_to?(:debug) configuration?.debug else false end end |
.disable_anmeldung ⇒ Object
#
Roebe::Shell.disable_anmeldung
This method can be used to disable checking for “anmeldungen” and exams. Permanently so - from the commandline as well.
#
58 59 60 61 62 63 64 65 |
# File 'lib/roebe/shell/module_methods/anmeldung.rb', line 58 def self.disable_anmeldung disable_check_for_upcoming_exams into = ::Roebe::Shell.file_check_upcoming_exams if File.exist? into what = 'false' ::Roebe.write_what_into(what, into) end end |
.disable_check_for_upcoming_exams ⇒ Object
#
Roebe::Shell.disable_check_for_upcoming_exams
#
33 34 35 |
# File 'lib/roebe/shell/module_methods/anmeldung.rb', line 33 def self.disable_check_for_upcoming_exams @check_upcoming_exams = false end |
.disable_colours ⇒ Object
#
Roebe::Shell.disable_colours
#
48 49 50 51 52 53 |
# File 'lib/roebe/shell/colours/colours.rb', line 48 def self.disable_colours if block_given? and (yield == :be_verbose) e 'Disabling colours.' end @use_colours = false end |
.disable_readline_is_available ⇒ Object
#
Roebe::Shell.disable_readline_is_available
#
64 65 66 |
# File 'lib/roebe/shell/shell/misc.rb', line 64 def self.disable_readline_is_available @readline_is_available = false end |
.do_not_use_configuration ⇒ Object
#
Roebe::Shell.do_not_use_configuration
#
110 111 112 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 110 def self.do_not_use_configuration self.use_configuration_file = false end |
.do_use_benchmark_while_loading ⇒ Object
#
Roebe::Shell.do_use_benchmark_while_loading
This method will enable using the benchmark while loading.
#
66 67 68 |
# File 'lib/roebe/shell/module_methods/benchmarks.rb', line 66 def self.do_use_benchmark_while_loading @use_benchmark_while_loading = true end |
.do_we_use_readline? ⇒ Boolean
#
Roebe::Shell.do_we_use_readline?
#
228 229 230 231 |
# File 'lib/roebe/shell/shell/misc.rb', line 228 def self.do_we_use_readline? puts 'Will readline be used: '+ ::Roebe.verbose_truth(readline_is_available?).to_s end |
.e(i = '') ⇒ Object
#
Roebe::Shell.e
#
41 42 43 |
# File 'lib/roebe/shell/colours/colours.rb', line 41 def self.e(i = '') puts i end |
.ecap(i) ⇒ Object
#
Roebe::Shell.ecap
This is like e() but we will capitalize the first character passed.
#
1173 1174 1175 1176 1177 |
# File 'lib/roebe/shell/shell/core/show_display_feedback_and_report.rb', line 1173 def self.ecap(i) i = i.dup if i.frozen? i[0,1] = i[0,1].upcase # Upcase it here. e i # And then we can delegate to e(). end |
.ecomment(i = '') ⇒ Object
#
Roebe::Shell.ecomment
#
34 35 36 |
# File 'lib/roebe/shell/help/help.rb', line 34 def self.ecomment(i = '') ::Roebe.ecomment(i) end |
.efancy(i = '', use_colours = true) ⇒ Object
#
Roebe::Shell.efancy
#
116 117 118 119 120 121 |
# File 'lib/roebe/shell/colours/colours.rb', line 116 def self.efancy( i = '', use_colours = true ) puts sfancy(i, use_colours) end |
.enable_check_for_upcoming_exams ⇒ Object
#
Roebe::Shell.enable_check_for_upcoming_exams
#
47 48 49 |
# File 'lib/roebe/shell/module_methods/anmeldung.rb', line 47 def self.enable_check_for_upcoming_exams @check_upcoming_exams = true end |
.enable_colours ⇒ Object
#
Roebe::Shell.enable_colours
#
58 59 60 61 62 63 |
# File 'lib/roebe/shell/colours/colours.rb', line 58 def self.enable_colours if block_given? and (yield == :be_verbose) e 'Enabling colours.' end @use_colours = true end |
.enable_debug ⇒ Object
#
Roebe::Shell.enable_debug
#
121 122 123 |
# File 'lib/roebe/shell/shell/core/debug.rb', line 121 def self.enable_debug configuration?.debug = true end |
.enable_readline_is_available ⇒ Object
#
Roebe::Shell.enable_readline_is_available
#
57 58 59 |
# File 'lib/roebe/shell/shell/misc.rb', line 57 def self.enable_readline_is_available @readline_is_available = true end |
.ensure_that_ftp_is_initialized ⇒ Object
#
Roebe::Shell.ensure_that_ftp_is_initialized
This will call initialize_ftp() unless we already were connected.
#
50 51 52 |
# File 'lib/roebe/shell/module_methods/ftp.rb', line 50 def self.ensure_that_ftp_is_initialized initialize_ftp unless ftp? end |
.entries_from_path? ⇒ Boolean
#
Roebe::Shell.entries_from_path?
#
109 110 111 |
# File 'lib/roebe/shell/shell/core/path.rb', line 109 def self.entries_from_path? ::Roebe.env?['PATH'] end |
.entries_from_path_as_array ⇒ Object
#
Roebe::Shell.entries_from_path_as_array
#
89 90 91 92 93 94 95 |
# File 'lib/roebe/shell/shell/core/path.rb', line 89 def self.entries_from_path_as_array _ = ::Roebe.env?['PATH'] if _ and _.include?(':') _ = _.split(':') end [_].flatten.compact end |
.ewarn(i = '', use_colours = use_colours? ) ⇒ Object
#
Roebe::Shell.ewarn
#
136 137 138 139 140 141 142 143 144 145 |
# File 'lib/roebe/shell/colours/colours.rb', line 136 def self.ewarn( i = '', use_colours = use_colours? ) if use_colours ::Colours.ewarn(i) else e i end end |
.exceptions_keep_numbers ⇒ Object
#
Roebe::Shell.exceptions_keep_numbers
Reader method over @array_exceptions_keep_numbers.
#
576 577 578 |
# File 'lib/roebe/shell/shell/shell.rb', line 576 def self.exceptions_keep_numbers @array_exceptions_keep_numbers end |
.external_requires ⇒ Object
#
Roebe::Shell.external_requires
This method will show which external requires are used.
#
1754 1755 1756 1757 1758 |
# File 'lib/roebe/shell/shell/shell.rb', line 1754 def self.external_requires file_lazy_load_these_components = ::Roebe.project_base_directory?+ 'shell/yaml/lazy_load_these_components.yml' YAML.load_file(file_lazy_load_these_components).sort end |
.file_check_upcoming_exams ⇒ Object
#
Roebe::Shell.file_check_upcoming_exams
#
771 772 773 |
# File 'lib/roebe/shell/shell/shell.rb', line 771 def self.file_check_upcoming_exams "#{Roebe::Shell.yaml_directory?}configuration/check_upcoming_exams.yml" end |
.file_shellrc ⇒ Object
#
Roebe::Shell.file_shellrc
Return the location towards the shellrc file.
#
834 835 836 |
# File 'lib/roebe/shell/shell/shell.rb', line 834 def self.file_shellrc "#{log_directory?}shellrc" end |
.file_video_collection(i = FILE_VIDEO_COLLECTION) ⇒ Object
#
MultimediaParadise.file_video_collection
This method will simply return where the yaml file is kept.
#
1057 1058 1059 1060 1061 |
# File 'lib/roebe/shell/shell/shell.rb', line 1057 def self.file_video_collection( i = FILE_VIDEO_COLLECTION ) i end |
.ftp? ⇒ Boolean
#
Roebe::Shell.ftp?
#
34 35 36 |
# File 'lib/roebe/shell/module_methods/ftp.rb', line 34 def self.ftp? @ftp end |
.generate_pdf_tutorial_then_upload_it ⇒ Object
#
Roebe::Shell.generate_pdf_tutorial_then_upload_it
You can use this method to simply generate a new .pdf file, then upload it anyway.
#
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/roebe/shell/shell/core/generate.rb', line 364 def self.generate_pdf_tutorial_then_upload_it unless File.directory? '/home/Temp/lighty/' FileUtils.mkdir_p '/home/Temp/lighty/' end if ::Roebe.is_on_roebe? url = 'http://localhost/programming/ruby/src/roebe/doc/roebe_shell_tutorial.cgi?pdf' OpenURI.send(:open, url) # ======================================================================= # # ^^^ This will have generated the .pdf. # ======================================================================= # # Hardcoded for now where the .pdf will reside. # ======================================================================= # # pdf_location = '/Depot/Temp/lighty/DIAMOND_SHELL_TUTORIAL.pdf' # # Not needed though because this is already done by the next line. # ======================================================================= # ftp = FtpParadise.new(:shevy, :dont_run_yet) ftp.do_login ftp.upload_this_binary_file(::Roebe::Shell.path_to_local_pdf_tutorial) e 'Finished uploading!' end |
.generate_tab_completion(use_this_directory_as_log_directory = ::Roebe.log_dir?, &block) ⇒ Object
#
Roebe::Shell.generate_tab_completion
Use this method to generate the tab completion for the Roebe::Shell component.
This refers to a shell file for bash, primarily, but it should also be possible to generate completion files for the zsh shell.
On my home system the method will generate a new file into:
/home/Temp/roebe/completion_for_roebe_shell.sh
To invoke this, do:
generate tab
#
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/roebe/shell/module_methods/generate_tab_completion.rb', line 39 def self.generate_tab_completion( use_this_directory_as_log_directory = ::Roebe.log_dir?, &block ) if Object.const_defined? :GenerateShellCompletion # ======================================================================= # # bl $RSRC/generate_shell_completion/lib/generate_shell_completion/generate_shell_completion.rb # ======================================================================= # _ = GenerateShellCompletion.new(nil, :dont_run_yet) # ======================================================================= # # The listing of completable-commands for the Roebe::Shell. # ======================================================================= # array = %w( --help --norc --extract --version --nocolours --nohistory --run-method ) # Append the keys from the following hash: array << ::Roebe::Shell::HASH_CONTAINING_THE_HELP_OPTIONS.keys.sort array.flatten store_there = "#{use_this_directory_as_log_directory}"\ "completion_for_roebe_shell.sh" # Where to store that file. if block_given? yielded = yield if yielded.is_a? Hash # ================================================================= # # === :store_where # ================================================================= # if yielded.has_key? :store_where store_there = yielded[:store_where] end end end array = array + array.map {|entry| entry.delete('-') } _.append_files_from_the_current_directory _.set_name_of_the_shell_function('roebe_shell_completion') _.set_dataset(array) _.set_aliases('dia,rdia,rda') # Use three aliases for this. _.store_here = store_there _.run else e "GenerateShellCompletion is not available. Consider "\ "installing it if you wish to generate the file "\ "#{sfile(File.basename(store_there))}." end end |
.hash_help_options ⇒ Object
#
Roebe::Shell.hash_help_options
We return the documented help options here.
This will be the Array defined lateron.
#
403 404 405 |
# File 'lib/roebe/shell/shell/core/help.rb', line 403 def self. @hash_help_options end |
.home_dir? ⇒ Boolean
#
Roebe::Shell.home_dir?
Query method for the @home_dir variable.
The @home_dir variable will denote where the user's home directory resides at.
On my home system, this may return this path:
/root/shell/
For other users they may want to have it defined elsewhere.
#
42 43 44 |
# File 'lib/roebe/shell/module_methods/home_directory.rb', line 42 def self.home_dir? @home_directory end |
.individual_cookbooks_directory? ⇒ Boolean
#
Roebe::Shell.individual_cookbooks_directory?
#
1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/roebe/shell/shell/shell.rb', line 1021 def self.individual_cookbooks_directory? if Object.const_defined?(:RBT) and RBT.respond_to?(:individual_cookbooks_directory?) _ = RBT.individual_cookbooks_directory? else _ = ENV['COOKBOOK_DIRECTORY'].to_s+'/cookbooks/' end _ end |
.initialize_ftp_object(use_this_host = 'SHEVY') ⇒ Object
#
Roebe::Shell.initialize_ftp_object
The first (optional) argument tells us which remote host we will use.
#
59 60 61 62 63 |
# File 'lib/roebe/shell/module_methods/ftp.rb', line 59 def self.initialize_ftp_object(use_this_host = 'SHEVY') set_ftp( FtpParadise::Connection.new(use_this_host, false) ) end |
.is_on_kde_konsole? ⇒ Boolean
#
Roebe::Shell.is_on_kde_konsole?
#
52 53 54 |
# File 'lib/roebe/shell/module_methods/misc.rb', line 52 def self.is_on_kde_konsole? Object.const_defined? :Colours # This should be equivalent to KDE Konsole colours. end |
.load_help_files ⇒ Object
#
Roebe::Shell.load_help_files
This method will load up all Roebe::Shell-specific helpfiles. They will reside in the help/ subdirectory.
#
27 28 29 30 31 32 |
# File 'lib/roebe/shell/module_methods/misc.rb', line 27 def self.load_help_files standalone_files = Dir["#{project_base_directory?}help/*.rb"] standalone_files.each {|file| require file } end |
.load_standalone_classes_files ⇒ Object
#
Roebe::Shell.load_standalone_classes_files
On my home system this may yield a path such as:
/usr/lib/ruby/site_ruby/3.1.0/roebe/shell/standalone_classes/*.rb
#
42 43 44 45 46 47 |
# File 'lib/roebe/shell/module_methods/misc.rb', line 42 def self.load_standalone_classes_files standalone_files = Dir["#{project_base_directory?}standalone_classes/*.rb"] standalone_files.each {|file| require file } end |
.main_encoding? ⇒ Boolean
#
Roebe::Shell.main_encoding?
Query back which encoding we will use. This will always be a String.
#
28 29 30 |
# File 'lib/roebe/shell/module_methods/encoding.rb', line 28 def self.main_encoding? @encoding.to_s end |
.main_file? ⇒ Boolean
#
Roebe::Shell.main_file?
#
30 31 32 |
# File 'lib/roebe/shell/module_methods/main_file.rb', line 30 def self.main_file? @main_file end |
.missing_gems? ⇒ Boolean
#
Roebe::Shell.missing_gems?
Tell us which gems are missing upon require-time. This will allow us to install such a missing gem.
#
26 27 28 |
# File 'lib/roebe/shell/shell/core/gems.rb', line 26 def self.missing_gems? @missing_gems end |
.parse_help_line(line) ⇒ Object
#
Roebe::Shell.parse_help_line
Will return an Array with two members - the first one being the command in question, the second one being the content.
#
363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/roebe/shell/shell/core/help.rb', line 363 def self.parse_help_line(line) # ======================================================================= # # This regex should work: # http://rubular.com/r/wTfaoomvkq # ======================================================================= # regex_to_use = /(\|.+?\|)(.+)/ # This regex is non-greedy. command = '' # This is the command itself. content = '' # This is the content of the command. line =~ regex_to_use command = $1.to_s.dup.delete('|').strip content = $2.to_s.dup.strip # Here we can not delete '|' as there may be internal || in use. result = [command, content] return result end |
.permanently_set_home_dir(what = ::Roebe::Shell.home_dir?, into = FILE_HOME_DIR) ⇒ Object
#
Roebe::Shell.permanently_set_home_dir
This method will also modify the yaml file.
#
985 986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/roebe/shell/shell/shell.rb', line 985 def self.permanently_set_home_dir( what = ::Roebe::Shell.home_dir?, into = FILE_HOME_DIR ) unless what.end_with? '/' # Ensure a trailing '/'. what = what.dup if what.frozen? what << '/' end puts "Designating #{::Roebe.sdir(what)} as the current home directory." puts "Saving into the file `#{::Roebe.sfile(into)}`." ::Roebe.write_what_into(what, into) end |
.pid_file? ⇒ Boolean
#
Roebe::Shell.pid_file?
#
1034 1035 1036 |
# File 'lib/roebe/shell/shell/shell.rb', line 1034 def self.pid_file? "#{log_directory?}pid.yml" end |
.populate_inbuilt_hash_help_options ⇒ Object
#
Roebe::Shell.populate_inbuilt_hash_help_options
This is the method that will populate the various '?' help options.
The '?' help options give the user some extra feedback about the individual subcommands of the Roebe::Shell.
#
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/roebe/shell/shell/core/help.rb', line 339 def self. Roebe::Shell. # Always clear it before populating it anew. # ======================================================================= # # We split up the individual help-menu entries: # ======================================================================= # = Roebe::Shell.(:return_array) .each {|line| if line.include? '|' command, content = Roebe::Shell.parse_help_line(line) # =================================================================== # # Next, we will always redefine the Hash with that option. # This allows us to query which entries exist. # =================================================================== # Roebe::Shell.['?'+command] = content.to_s.dup end } end |
.preferred_encoding? ⇒ Boolean
#
Roebe::Shell.preferred_encoding?
The class-method preferred_encoding? expects the configuration object to yield to it the information which encoding is to be preferred.
If the configuration object is unavailable, we will default to the main_encoding instead.
#
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/roebe/shell/module_methods/encoding.rb', line 75 def self.preferred_encoding? if ::Roebe::Shell.config? and ::Roebe::Shell.config?.respond_to?(:preferred_encoding) ::Roebe::Shell.config?.preferred_encoding else # ===================================================================== # # Else we default to tme encoding, via querying # Roebe::Shell.main_encoding?. # ===================================================================== # ::Roebe::Shell.main_encoding? end end |
.project_base_directory? ⇒ Boolean
#
Roebe::Shell.project_base_directory?
The base directory of the project is returned by this method.
No constant is used anymore since as of August 2020.
#
24 25 26 |
# File 'lib/roebe/shell/project/project.rb', line 24 def self.project_base_directory? "#{Roebe.project_base_dir?}shell/" end |
.readline_is_available? ⇒ Boolean
#
Roebe::Shell.readline_is_available?
Query-method as to whether readline is available or whether it is not.
#
50 51 52 |
# File 'lib/roebe/shell/shell/misc.rb', line 50 def self.readline_is_available? @readline_is_available end |
.register_this_component(name, is_it_available) ⇒ Object
#
Roebe::Shell.register_this_component
#
33 34 35 36 37 |
# File 'lib/roebe/shell/module_methods/available_components.rb', line 33 def self.register_this_component( name, is_it_available ) @available_components[name] = is_it_available end |
.register_this_missing_gem(file) ⇒ Object
#
Roebe::Shell.register_this_missing_gem
#
33 34 35 |
# File 'lib/roebe/shell/shell/core/gems.rb', line 33 def self.register_this_missing_gem(file) @missing_gems << file end |
.registered_case_options ⇒ Object
#
Roebe::Shell.registered_case_options
Return all available slots from the DiamondShell menu.
#
203 204 205 |
# File 'lib/roebe/shell/shell/shell.rb', line 203 def self. @array_roebe_shell_case_options end |
.report_where_the_home_directory_can_be_found(home_dir = home_dir? ) ⇒ Object
#
Roebe::Shell.report_where_the_home_directory_can_be_found
To invoke this method from the commandline, try:
rdia --home-dir?
#
23 24 25 26 27 28 29 |
# File 'lib/roebe/shell/module_methods/report_where_the_home_directory_can_be_found.rb', line 23 def self.report_where_the_home_directory_can_be_found( home_dir = home_dir? ) puts "#{::Colours.rev}The #{::Colours.steelblue('home directory')} "\ "for the Roebe::Shell interface can be found "\ "at `#{::Colours.sdir(home_dir)}`." end |
.require_this_via_a_thread(i) ⇒ Object
#
Roebe::Shell.require_this_via_a_thread
Require a component via Thread.new.
#
50 51 52 53 54 |
# File 'lib/roebe/shell/shell/core/require.rb', line 50 def self.require_this_via_a_thread(i) Thread.new { require i } end |
.reset_help_options ⇒ Object
#
Roebe::Shell.reset_help_options
#
311 312 313 |
# File 'lib/roebe/shell/shell/core/help.rb', line 311 def self. ::Roebe::Shell. end |
.return_help_menu ⇒ Object
#
Roebe::Shell.return_help_menu
This method will simply return the FILE_HELP_MENU constant, without any sanitizing.
#
437 438 439 |
# File 'lib/roebe/shell/shell/core/help.rb', line 437 def self. FILE_HELP_MENU # bl diamond_shell/help/help_menu.rb end |
.return_missing_components ⇒ Object
#
Roebe::Shell.return_missing_components
#
49 50 51 52 53 54 |
# File 'lib/roebe/shell/module_methods/available_components.rb', line 49 def self.return_missing_components _ = Roebe::Shell.available_components?.select {|key, value| value == :is_not_available } return _ end |
.return_pwd ⇒ Object
#
Roebe::Shell.return_pwd
#
17 18 19 |
# File 'lib/roebe/shell/module_methods/misc.rb', line 17 def self.return_pwd rds("#{Dir.pwd}/") end |
.return_sanitized_help_menu(return_array_or_string = :string) ⇒ Object
#
Roebe::Shell.return_sanitized_help_menu
#
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'lib/roebe/shell/shell/core/help.rb', line 411 def self.(return_array_or_string = :string) _ = # Grab a raw copy of the help-menu first. _.strip! # ======================================================================= # # _ is still a String at this point. We now look for whether we # are on Roebe. # ======================================================================= # if _.include?('ROEBE') and !Roebe.on_roebe? _ = _[0.._.index(/ROEBE_SUBSECTION/)-1] end _ = _.split(N).map(&:strip) _.reject! {|entry| entry.start_with? '#' } # Get rid of comments. case return_array_or_string when :string, :return_string _.join(N) # We must return a String. when :array, :return_array _ end end |
.run(optional_commandline_arguments = ARGV, run_already = true) ⇒ Object
#
Roebe::Shell.run
This method can be used to instantiate a new Roebe::Shell instance.
Add more ways to instantiate a new Roebe::Shell object. This is mostly done for more convenience and flexibility.
An alias called [] exists, invokable via Roebe::Shell[].
#
375 376 377 378 379 380 381 382 383 |
# File 'lib/roebe/shell/commandline/commandline.rb', line 375 def self.run( optional_commandline_arguments = ARGV, run_already = true ) Roebe::Shell::Commandline.new( optional_commandline_arguments, run_already ) end |
.set_commandline_arguments(i = ARGV) ⇒ Object
#
Roebe::Shell.set_commandline_arguments
We keep track of the commandline arguments through this @ivar.
#
24 25 26 |
# File 'lib/roebe/shell/module_methods/commandline_arguments.rb', line 24 def self.set_commandline_arguments(i = ARGV) @commandline_arguments = [i].flatten.compact end |
.set_configuration(i = nil) ⇒ Object
#
Roebe::Shell.set_configuration
#
126 127 128 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 126 def self.set_configuration(i = nil) @configuration = i # This variable will hold the configuration of the Roebe::Shell project. end |
.set_debug(i = true) ⇒ Object
#
Roebe::Shell.set_debug
#
114 115 116 |
# File 'lib/roebe/shell/shell/core/debug.rb', line 114 def self.set_debug(i = true) configuration?.debug = i end |
.set_encoding(i = :default) ⇒ Object
#
Roebe::Shell.set_encoding
You can set to another encoding if you want to, through the method called Roebe::Shell.set_encoding() here.
The method will default to UTF-8 encoding since as of July 2019.
#
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/roebe/shell/module_methods/encoding.rb', line 40 def self.set_encoding( i = :default ) case i.to_s # case tag # ======================================================================= # # === default # # This will be the default encoding. # ======================================================================= # when 'default', 'utf' i = ENCODING_UTF # ======================================================================= # # === iso # ======================================================================= # when 'iso' i = ENCODING_ISO # ======================================================================= # # === binary # ======================================================================= # when 'binary' i = ENCODING_BIT end @encoding = i end |
.set_ftp(i) ⇒ Object
#
Roebe::Shell.set_ftp
#
41 42 43 |
# File 'lib/roebe/shell/module_methods/ftp.rb', line 41 def self.set_ftp(i) @ftp = i end |
.set_hash_help_options(i = {}) ⇒ Object
#
Roebe::Shell.set_hash_help_options
#
390 391 392 |
# File 'lib/roebe/shell/shell/core/help.rb', line 390 def self.(i = {}) @hash_help_options = {} end |
.set_home_directory(i = HOME_DIR) ⇒ Object
#
Roebe::Shell.set_home_directory
This method can be used to designate another home directory to use.
It will be valid for the current session - if you want to permanently set a new home directory then use the class-method Roebe::Shell.permanently_set_home_dir instead.
#
58 59 60 61 62 63 64 65 |
# File 'lib/roebe/shell/module_methods/home_directory.rb', line 58 def self.set_home_directory( i = HOME_DIR ) i = i.dup if i.frozen? i << '/' unless i.end_with? '/' i = ::Roebe.rds(i) @home_directory = i end |
.set_main_file(i) ⇒ Object
#
Roebe::Shell.set_main_file
#
37 38 39 |
# File 'lib/roebe/shell/module_methods/main_file.rb', line 37 def self.set_main_file(i) @main_file = i end |
.set_startup_time_at(i = Time.now) ⇒ Object
#
Roebe::Shell.set_startup_time_at
This method can be used to time how long it takes to load the whole Roebe::Shell. Note that we will always register the startup-time if we load from the file diamond_shell/dia.
#
21 22 23 24 25 |
# File 'lib/roebe/shell/module_methods/startup_time.rb', line 21 def self.set_startup_time_at( i = Time.now ) @startup_time_at = i end |
.set_this_file(i) ⇒ Object
#
Roebe::Shell.set_this_file
#
24 25 26 |
# File 'lib/roebe/shell/shell/core/assign.rb', line 24 def self.set_this_file(i) @this_file = i end |
.set_use_colours(i) ⇒ Object
#
Roebe::Shell.set_use_colours
#
68 69 70 71 72 73 |
# File 'lib/roebe/shell/colours/colours.rb', line 68 def self.set_use_colours(i) if i.is_a? String i = turn_into_boolean_value(i) end @use_colours = i end |
.sfancy(i = '', use_colours = use_colours? ) ⇒ Object
#
Roebe::Shell.sfancy
#
102 103 104 105 106 107 108 109 110 111 |
# File 'lib/roebe/shell/colours/colours.rb', line 102 def self.sfancy( i = '', use_colours = use_colours? ) if use_colours ::Colours.sfancy(i) else return i.to_s end end |
.show_help(n_ljust = 28, use_this_colour_for_cliner = :royalblue) ⇒ Object
#
Roebe::Shell.show_help (commandline tag)
This method shows the commandline options that are available and supported.
The first argument to this method, called `n_ljust`, can be used to pad the left side towards the right. This means that the higher that number, the more left-padded the left side will appear.
Options include commandline flags such as –nohistory or -no-colours.
To use this functionality, do:
rda --show-commandline-help
#
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/roebe/shell/help/help.rb', line 56 def self.show_help( n_ljust = 28, use_this_colour_for_cliner = :royalblue ) print ::Colours.rev e ::Roebe.cliner(:default, :default, use_this_colour_for_cliner) # ======================================================================= # # Next, append the help options stored in the main Hash. # ======================================================================= # colourized_separator_token = Colours.royalblue('#') HASH_CONTAINING_THE_HELP_OPTIONS.each_pair {|key, value| if value.include? N splitted = value.split(N) e " #{::Colours.steelblue(key.ljust(n_ljust))} "\ "#{colourized_separator_token} #{::Colours.mediumseagreen(splitted[0])}" splitted[1 .. -1].each {|inner_value| e " #{''.ljust(n_ljust)} #{colourized_separator_token} "\ "#{::Colours.mediumseagreen(inner_value)}" } else e " #{::Colours.steelblue(key.ljust(n_ljust))} "\ "#{colourized_separator_token} #{::Colours.mediumseagreen(value)}" end } ::Roebe.cliner(:default, :default, use_this_colour_for_cliner) e end |
.simp(i = '', use_colours = @use_colours) ⇒ Object
#
Roebe::Shell.simp
#
150 151 152 153 154 155 156 157 158 159 |
# File 'lib/roebe/shell/colours/colours.rb', line 150 def self.simp( i = '', use_colours = @use_colours ) if use_colours ::Colours.simp(i) else i end end |
.startup_time_at? ⇒ Boolean
#
Roebe::Shell.startup_time_at?
#
30 31 32 |
# File 'lib/roebe/shell/module_methods/startup_time.rb', line 30 def self.startup_time_at? @startup_time_at end |
.swarn(i = '', use_colours = use_colours? ) ⇒ Object
#
Roebe::Shell.swarn
#
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/roebe/shell/colours/colours.rb', line 78 def self.swarn( i = '', use_colours = use_colours? ) if use_colours ::Colours.firebrick(i) else i.to_s end end |
.test_colours(use_colours = use_colours? ) ⇒ Object
#
Roebe::Shell.test_colours
This method can be used to find out whether we have colours enabled or disabled.
#
303 304 305 306 307 308 309 310 311 |
# File 'lib/roebe/shell/colours/colours.rb', line 303 def self.test_colours( use_colours = use_colours? ) if use_colours efancy 'This should be colourized.' else efancy 'This should not be colourized.' end end |
.test_this_input(i) ⇒ Object
Roebe::Shell.test_this_input
We will register this class-method here, but I am not entirely sure whether it is still needed or not.
#
19 20 21 |
# File 'lib/roebe/shell/shell/core/test.rb', line 19 def self.test_this_input(i) (i) end |
.this_file? ⇒ Boolean
#
Roebe::Shell.this_file?
Query method over @this_file.
#
33 34 35 |
# File 'lib/roebe/shell/shell/core/assign.rb', line 33 def self.this_file? @this_file end |
.update_entries_from_path(i) ⇒ Object
#
Roebe::Shell.update_entries_from_path
Provide a new path listing here.
#
102 103 104 |
# File 'lib/roebe/shell/shell/core/path.rb', line 102 def self.update_entries_from_path(i) ::Roebe.env?['PATH'] = i end |
.upload(i, ftp_mode_to_use = :ascii, do_try_to_login = true) ⇒ Object
#
Roebe::Shell.upload
Use this class-method to upload something to my remote FTP site.
We use the FtpLibrary from project FtpParadise for this.
#
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/roebe/shell/shell/core/upload.rb', line 20 def self.upload( i, # We will upload this here. ftp_mode_to_use = :ascii, # The default ftp-mode will be ascii. do_try_to_login = true ) ftp_mode_to_use = :ascii if ftp_mode_to_use == :default if do_try_to_login == :do_not_try_to_login do_try_to_login = false end if i.is_a? Array i.each {|entry| upload(entry) } else i = i.to_s # We require a String from this point forward - no Symbols. original_input = i.dup case i # ===================================================================== # # === Upload my aliases # ===================================================================== # when 'aliases' # Here we upload the various aliases. base_dir = '/home/x/programming/ruby/src/rcfiles/lib/rcfiles/yaml/' i = %w( aliases.yml cd_aliases.yml programs_aliases.yml ).map {|entry| base_dir+entry } # ===================================================================== # # === Upload the Roebe::Shell tutorial. # # This is no longer really in use since as of 2022. # ===================================================================== # when 'tutorial' # upload :tutorial serve_local_page 'programming/ruby/src/roebe/doc/roebe_shell_tutorial.cgi?pdf' i = LOCAL_PDF_DOCUMENTATION ftp_mode_to_use = :binary # Must be binary as it is a .pdf file. # ===================================================================== # # === Upload zeugnisse # ===================================================================== # when 'zeugnisse' Studium::PublishMyExams[]; i = nil # ===================================================================== # # === Upload the main file # ===================================================================== # when 'MAIN_FILE', 'MAINFILE', 'MFILE', 'this_file?' i = ::Roebe::Shell.this_file? # ===================================================================== # # === configuration # ===================================================================== # when 'configuration' i = make_gem('$RUBY_SRC/configuration/').to_s # ===================================================================== # # === pruefung # ===================================================================== # when 'pruefungsfragen','pr','pruefung' i = '/home/x/studium/pruefungs_fragen.rb' ftp_mode_to_use = :binary end unless File.exist?(i) if i.is_a? Array if original_input == 'aliases' # Also upload the rc-files. ::Roebe::Shell.ensure_that_ftp_is_initialized ::Roebe::Shell.ftp?.login :shevy, :mode_to_use => ftp_mode_to_use ::Roebe::Shell.ftp?.cd('AUTOGENERATED') %w( aliases_rc cd_aliases_rc programs_aliases_rc ).map {|entry| '/AUTOGENERATED/'+entry }.each {|file| upload(file, :default, :do_not_try_to_login) e } ::Roebe::Shell.ftp?.cd('..') # And go down again here. end i.each {|entry| upload(entry, :default) } else # We want to upload an individual file here. i = convert_global_env(i) if i.include? '$' if File.exist? i ::Roebe::Shell.initialize_ftp unless defined? ::Roebe::Shell.ftp? if do_try_to_login ::Roebe::Shell.ftp?.login :shevy, mode_to_use: ftp_mode_to_use end if ::Roebe::Shell.is_image_file?(i) ::Roebe::Shell.ftp?.mode_to_use = :binary end if ::Roebe::Shell.use_konsole? size = '(Size: '+::Colours.turquoise(File.size(i).to_s)+' kb)' else size = '(Size: '+File.size(i).to_s+' kb)' end e 'Next uploading `'+sfile(i)+'` '+size+ ' to `'+sfancy(::Roebe::Shell.ftp?.host?)+'`.' if ftp_mode_to_use == :binary ::Roebe::Shell.ftp?.upload_binary(i) else ::Roebe::Shell.ftp?.upload(i) end else ewarn "Could not find a file or directory "\ "called `#{simp(i)}`." end end if i # This check because "zeugnisse" sets to nil again. end end |
.use_benchmark_while_loading? ⇒ Boolean
#
Roebe::Shell.use_benchmark_while_loading?
#
57 58 59 |
# File 'lib/roebe/shell/module_methods/benchmarks.rb', line 57 def self.use_benchmark_while_loading? @use_benchmark_while_loading end |
.use_configuration_file=(i) ⇒ Object
#
Roebe::Shell.use_configuration_file?
#
142 143 144 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 142 def self.use_configuration_file=(i) @use_configuration_file = i end |
.use_configuration_file? ⇒ Boolean
#
Roebe::Shell.use_configuration_file?
Query whether we will use the roebe-shell configuration file.
#
135 136 137 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 135 def self.use_configuration_file? @use_configuration_file end |
.use_konsole_colours? ⇒ Boolean
#
Roebe::Shell.use_konsole_colours?
Query whether we want to use konsole_colours or not. This can be toggled in the configuration for the Diamond Shell.
#
228 229 230 231 232 233 234 |
# File 'lib/roebe/shell/colours/colours.rb', line 228 def self.use_konsole_colours? if config? and config?.respond_to?(:use_konsole_colours) config?.use_konsole_colours else false end end |
.valid_benchmark_options ⇒ Object
#
Roebe::Shell.valid_benchmark_options
This class-method will return all valid and registered benchmark options. This is important for the commandline variant, so that we can invoke the diashell via a –benchmark switch.
#
50 51 52 |
# File 'lib/roebe/shell/module_methods/benchmarks.rb', line 50 def self. ARRAY_VALID_BENCHMARK_OPTIONS end |
.valid_help_options ⇒ Object
#
Roebe::Shell.valid_help_options
#
210 211 212 |
# File 'lib/roebe/shell/shell/shell.rb', line 210 def self. ARRAY_VALID_HELP_OPTIONS end |
.valid_no_configuration_options ⇒ Object
#
Roebe::Shell.valid_no_configuration_options
#
65 66 67 |
# File 'lib/roebe/shell/configuration/configuration.rb', line 65 def self. ARRAY_VALID_NO_CONFIGURATION_OPTIONS end |
.yaml_directory? ⇒ Boolean
#
Roebe::Shell.yaml_directory?
#
31 32 33 |
# File 'lib/roebe/shell/project/project.rb', line 31 def self.yaml_directory? "#{project_base_directory?}yaml/" end |
Instance Method Details
#_ ⇒ Object
#
_
Attr reader over the @_ dump variable.
#
1186 1187 1188 |
# File 'lib/roebe/shell/shell/core/misc.rb', line 1186 def _ @_ end |
#_=(i) ⇒ Object
#
_=
#
1193 1194 1195 |
# File 'lib/roebe/shell/shell/core/misc.rb', line 1193 def _=(i) @_ = i end |
#act_filetype_specific(i) ⇒ Object
#
act_filetype_specific
This method should be used whenever you want to access a file in a “file-type specific manner”. For example, an archive such as .zip should be extracted (typically), whereas a ruby .gem file should be installed via a corresponding command.
This is just an assumption, though - for example, a ruby .gem file could also be extracted too by default. This method has to choose one option among more than one, so it may not always yield the “correct” option.
#
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/roebe/shell/shell/core/act_filetype_specific.rb', line 28 def act_filetype_specific(i) if i.is_a? Array i.each {|entry| act_filetype_specific(entry) } else if is_archive? i if i =~ /\.gem$/ # Install gems here. install_this_gem(i) return else extract(i) # Extract archives here. end end file_type = i.split('.').last case file_type # ===================================================================== # # === cgi # ===================================================================== # when 'cgi', 'html', 'png' # for now, png will be opened in the browser as well. open_in_browser_tab(i) # ===================================================================== # # === msixbundle # # This is for microsoft .msixbundle files. They are installed via # powershell. # ===================================================================== # when 'msixbundle' esystem 'Add-AppxPackage '+i # ===================================================================== # # === avi # ===================================================================== # when 'avi', 'flv', 'ogg', /mp(.)*/ play_multimedia_file(i) # ===================================================================== # # === pdf # ===================================================================== # when 'pdf', 'xdpf', 'xpdf' open_pdf(i) # ===================================================================== # # === ppt # ===================================================================== # when 'ppt', 'odp', 'pptx', 'ppx' esystem 'libreoffice '+file_name else # =================================================================== # # Handle the situation when we wish to debug next: # =================================================================== # if config?.debug e 'In act_filetype_specific(), line: '+__LINE__.to_s ewarn file_type end # =================================================================== # # If this is a directory, we will enter it. # =================================================================== # if File.directory? i cd(i) else # ================================================================= # # Act on mode in use next - possible modes are display, # browser and edit: # ================================================================= # case config?.default_file_action.to_s # ================================================================= # # === display # ================================================================= # when 'display' cat(i) # ================================================================= # # === browser # ================================================================= # when 'browser' open_in_browser(i) # ================================================================= # # === edit # ================================================================= # when 'edit' if is_image_file?(i) e 'Currently, editing an image does not make sense.' e 'We thus overrule it and display the image in the '\ 'browser instead.' open_in_browser(i) else open_in_editor(i) end end end end end end |
#action_check_for_isos(_ = '/Depot/ISOs/', be_verbose = be_verbose? ) ⇒ Object Also known as: check_for_isos
#
action_check_for_isos
We use this method to check whether we have any .iso file, in the directory /Depot/ISOs/.
In case we have, we will notify the user about these files on startup.
We will, however had, only check that directory - subdirectories will NOT be checked.
#
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/roebe/shell/shell/core/iso.rb', line 33 def action_check_for_isos( _ = '/Depot/ISOs/', be_verbose = be_verbose? ) # ======================================================================= # # Only continue if the Directory /Depot/ISOs exists. # ======================================================================= # if Dir.exist?(_) and check_for_iso_files? # ===================================================================== # # If that directory is empty, we don't have to do anthing at all. # ===================================================================== # if Dir.empty?(_) else # =================================================================== # # Only continue if the Directory is not empty. So the next step # is to select all .iso files in that directory. # =================================================================== # all_isos = get_files_from(_).select {|file| file.include? '.iso' } # =================================================================== # # Since as of 23.12.2011, we scan for the content 'bootable' and # use the external command called `file`. # # Since March 2013 we just search for 'boot' string, as some .iso # files may not have the full 'bootable' string here. # =================================================================== # if program_exists? 'file' # Use file here. all_isos.reject! {|entry| result = `file #{entry}` !result.include?('boot') } end if all_isos.empty? else all_isos = all_isos.sort # Sort it first. if be_verbose e "#{rev}The following #{seagreen('.iso')} files were found:" e total_filesize_of_all_isos = 0 all_isos.each {|this_iso_file| e " #{steelblue(this_iso_file)}" total_filesize_of_all_isos += File.size?(this_iso_file) } total_filesize_of_all_isos = ((total_filesize_of_all_isos.to_f / 1024.0) / 1024.04).round(0) e if all_isos.size == 1 e sfancy(all_isos.size.to_s)+" iso file was found "+ "in #{sdir(_)}, with a total filesize "+ "of #{sfancy(total_filesize_of_all_isos)} MB:" else e sfancy(all_isos.size.to_s)+" iso files were found "+ "in #{sdir(_)}, with a total filesize "+ "of #{sfancy(total_filesize_of_all_isos)} MB:" end # ================================================================= # # In the past, assign_file() was used, but I noticed that # this isn't quite that useful, so it was disabled again. # ================================================================= # proper_english = 'it' proper_english = 'them' if all_isos.size > 1 e 'Consider '+sfancy('burning')+' (or '+sfancy('removing')+ ') '+proper_english+'.' end end # =================================================================== # # Next, we will check for non .iso files. # =================================================================== # non_iso_files = get_all_files_from( _, :ignore_subdirectories ) # bl $DIA/base/get_file_listing.rb # =================================================================== # # This may still include subdirectories, which we will ignore, # thus the following reject. # =================================================================== # non_iso_files.reject! {|entry| File.directory? entry } non_iso_files.reject! {|entry| (File.extname(entry) == '.iso') or (File.extname(entry) == '.md') # .md files are also ignored, since November 2018. } unless non_iso_files.empty? # Ok, we found non-iso files here. if be_verbose cliner('=') e 'We found some '+swarn('non .iso files')+' in '+sdir(_)+' - namely' e '('+sfancy(non_iso_files.join(', '))+').'+N e 'It is preferred if only .iso files are stored in that directory.' cliner('=') e end end end end end |
#add(i) ⇒ Object
#
add (add tag)
Gather all add-related methods here.
#
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/roebe/shell/shell/core/add.rb', line 77 def add(i) if i.is_a? Array if i.first == 'user' add(i.join(' ').strip) else i.each {|entry| add(entry) } end else i = i.to_s.strip i = i.gsub(/to/,'').strip # Get rid of "to". case i # ===================================================================== # # === jumpers # ===================================================================== # when 'jumpers','jumper','setpoint' create_setpoint # ===================================================================== # # === user # ===================================================================== # when /^user/ add_user(i) # ===================================================================== # # === favourites # ===================================================================== # when /favourites/ # This entry also handles include? 'favourites' add_to_favourites(i) # ===================================================================== # # === group # ===================================================================== # when 'group' add_group # ===================================================================== # # === recipe # ===================================================================== # when 'recipe' interactive_recipe_creation end end end |
#add_favourite_audio(i) ⇒ Object
#
add_favourite_audio
This will add entries into the file:
env?['AUDIO']+'/YAML/current_favourites.yml'
#
329 330 331 332 333 334 335 336 337 338 |
# File 'lib/roebe/shell/shell/core/audio.rb', line 329 def add_favourite_audio(i) if i.is_a? Array i.each {|entry| add_favourite_audio(entry) } else this_file = env?['AUDIO']+'/YAML/current_favourites.yml' _ = N+'- '+i e 'Now appending `'+simp(_)+'` to '+sfile(this_file)+'.' append_what_to(_, this_file) end end |
#add_group(this_group = nil) ⇒ Object
#
add_group
Add a group via this method. We will use the command “groupadd” for this task.
Usage example:
add_group nobody
#
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/roebe/shell/shell/core/add.rb', line 57 def add_group( this_group = nil ) if this_group if this_group.is_a? Array this_group.each {|entry| add_group(entry) } else _ = "groupadd #{this_group}" e esystem _ e end end end |
#add_personal_help_section ⇒ Object
#
add_personal_help_section
This method hooks in some stuff for my personal settings.
#
275 276 277 278 |
# File 'lib/roebe/shell/shell/core/help.rb', line 275 def add_personal_help_section '' register_this_help_option end |
#add_require(i) ⇒ Object
#
add_require
This method will be verbose by default.
It will add a new gem to the list of gems that will be loaded upon startup.
#
177 178 179 180 181 182 183 184 |
# File 'lib/roebe/shell/shell/core/add.rb', line 177 def add_require(i) if i.is_a? Array i.each {|entry| add_require(entry) } else e "Now adding the gem called #{simp(i)} to the list of startup files." add_this_entry_to_the_yaml_file_containing_custom_requires(i) end end |
#add_to_favourites(i) ⇒ Object
#
add_to_favourites
Use this method to add to the favourites file.
#
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/roebe/shell/shell/core/add.rb', line 21 def add_to_favourites(i) require 'multimedia_paradise' i = i.first if i.is_a? Array if i.include? 'favourites' i.gsub!(/favourites/,'') i.strip! end i = "\n#{i}" # ======================================================================= # # Query whether the input is to be considered an audio file. # ======================================================================= # if is_audio_file? i if File.exist? where_to i = i.dup if i.frozen? i.prepend(' - ') MultimediaParadise.add_this_song_to_the_playlist(i) else ewarn "Can not append to #{sfile(where_to)} because it "\ "does not exist." end else # Ok, it is not an audio file. e "It is not an audio file. Thus we won't add it." end end |
#add_to_path(i, be_verbose = false) ⇒ Object
#
add_to_path
#
116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/roebe/shell/shell/core/path.rb', line 116 def add_to_path( i, be_verbose = false ) if i.is_a? Array i = i.join(':') end if be_verbose == :be_verbose e "Now adding #{col(i)} to the PATH setting." end old_values = env?['PATH'] Roebe::Shell.update_entries_from_path( (old_values+':'+i).squeeze(':') ) end |
#add_to_the_playlist(i) ⇒ Object
#
add_to_the_playlist
Use this method to add to the audio playlist.
#
29 30 31 32 33 34 |
# File 'lib/roebe/shell/shell/core/audio.rb', line 29 def add_to_the_playlist(i) begin require 'multimedia_paradise/audio/playlist/playlist.rb' rescue LoadError; end MultimediaParadise::Playlist.add(i) end |
#add_user(this_user = nil) ⇒ Object
#
add_user
This method adds a user to the system.
#
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/roebe/shell/shell/core/add.rb', line 122 def add_user( this_user = nil ) if this_user if this_user.is_a? Array this_user.each {|entry| add_user(entry) } else # At this point we assume that this will be a String. if this_user.include? 'user ' this_user.gsub!(/^user /,'') end case this_user # =================================================================== # # === lighty # =================================================================== # when 'lighty' if is_on_roebe? add_group(:nobody) do_add_this_user(this_user) else do_add_this_user(this_user) end when *HELP_OPTIONS e '|args|Arguments|_| for this method:' e e ' (1) |fa|<this_user>|_|: Give the name of this user.' e else # ================================================================= # # This is the action that will add the user in question. # ================================================================= # do_add_this_user(this_user) end end else # else this is when input is nil. e 'Please provide a name for the user to be added.' end end |
#aliases? ⇒ Boolean
#
aliases?
#
75 76 77 |
# File 'lib/roebe/shell/shell/core/aliases.rb', line 75 def aliases? return @internal_hash[:aliases] end |
#all(i = nil) ⇒ Object
#
all
#
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/roebe/shell/shell/core/all.rb', line 47 def all( i = nil ) _ = get_all_files if i.is_a? Array unless i.empty? # In this case, we will apply a filter. _.select! {|entry| entry.end_with? i.first } end end e 'Assigning all files in this directory to the '\ 'variable '+sfancy('@_')+'.' @_ = _ end |
#all_arguments? ⇒ Boolean Also known as: all_arguments, a?, a, arguments?
#
all_arguments?
#
293 294 295 |
# File 'lib/roebe/shell/shell/core/arguments.rb', line 293 def all_arguments? @internal_hash[:all_arguments] end |
#all_files(from_where = :pwd) ⇒ Object Also known as: get_all_files
#
all_files
Use this method to obtain all files from a given directory.
#
90 91 92 |
# File 'lib/roebe/shell/shell/core/get_file_listing.rb', line 90 def all_files(from_where = :pwd) get_file_listing(from_where).reject {|entry| ! File.file? entry } # Reject non-files here. end |
#all_images(of_this_directory = get_pwd) ⇒ Object
#
all_images
Retrieve all images of this directory with this method here.
We will also automatically assign to the ivar @_.
By default we will use the current directory.
#
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/roebe/shell/shell/core/all.rb', line 25 def all_images( of_this_directory = get_pwd ) of_this_directory = of_this_directory.to_s.dup # In case it is tainted. of_this_directory << '/*' unless of_this_directory.end_with? '/*' of_this_directory = rds(of_this_directory) if of_this_directory.include? '$' of_this_directory = convert_global_env(of_this_directory) end the_files = get_files_from( of_this_directory, :obtain_from_subdirectories ) @_ = the_files.select {|file| # true for "include subdirs". is_image_file?(file) } return @_ end |
#all_songs(i = env?['MY_SONGS']) ⇒ Object Also known as: get_all_songs, all_audio_files, return_all_audio_files
#
all_songs
Obtain all songs, by calling into get_files_from().
#
256 257 258 259 260 |
# File 'lib/roebe/shell/shell/core/audio.rb', line 256 def all_songs( i = env?['MY_SONGS'] ) return get_files_from(i, true) end |
#analyse_the_user_input(_ = user_input? ) ⇒ Object Also known as: process_user_input
#
analyse_the_user_input
This method in particular has to set the arguments from the user input.
#
2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 |
# File 'lib/roebe/shell/shell/shell.rb', line 2102 def analyse_the_user_input( _ = user_input? ) # ======================================================================= # # Next we must split the arguments up. # ======================================================================= # if _ and _.include? ' ' splitted = _.split(' ') set_all_arguments( splitted[1 .. -1] ) user_input = splitted.first set_user_input(user_input) # ===================================================================== # # If the arguments include a '# ' then pass them into the # following clause again. Note that # ===================================================================== # if _.include? '# ' set_all_arguments( return_user_input_without_trailing_comments ) end return user_input # We need to return this here, so it can be used in the second loop. end return _ end |
#anyone_has_a_birthday?(optional_n_days = 14) ⇒ Boolean Also known as: check_whether_anyone_has_a_birthday
#
anyone_has_a_birthday?
We check here if anyone has a birthday, within the coming 14 days.
Right now this solution is not 100% perfect because we do not include older dates.
Usage example:
bday 120
bl $RUBY_MISC/birthday_notifications.rb
#
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/roebe/shell/shell/core/birthdays.rb', line 27 def anyone_has_a_birthday?( optional_n_days = 14 ) require 'roebe/classes/birthday_notifications.rb' if optional_n_days.is_a? Array optional_n_days = optional_n_days.first end optional_n_days = 10 if optional_n_days.nil? optional_n_days = 10 if optional_n_days.to_s.empty? _ = ::Roebe::BirthdayNotifications.new(nil, :do_not_run_yet) # false so we do not run already _.set_n_days optional_n_days # One week by default. #_.report_when_nothing_was_found _.run # true for "be silent". end |
#append_file(what, into) ⇒ Object Also known as: append_onto_this_file
#
append_file
#
109 110 111 |
# File 'lib/roebe/shell/shell/core/append.rb', line 109 def append_file(what, into) ::Roebe.append_file(what, into) end |
#append_this_to_the_arguments(i) ⇒ Object
#
append_this_to_the_arguments
Note that this method will NOT do any additional processing.
#
26 27 28 29 |
# File 'lib/roebe/shell/shell/core/arguments.rb', line 26 def append_this_to_the_arguments(i) all_arguments? << i all_arguments.flatten! end |
#append_this_to_the_last_result(i) ⇒ Object
#
append_this_to_the_last_result
#
18 19 20 |
# File 'lib/roebe/shell/shell/core/append.rb', line 18 def append_this_to_the_last_result(i) @internal_hash[:last_result] << "#{i |