Class: RBT::Action::Cookbooks::RawCookbook
- Inherits:
-
RBT::Action
show all
- Defined in:
- lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb
Overview
RBT::Action::Cookbooks::RawCookbook
Constant Summary
collapse
- DIRECTORY_EXPANDED_COOKBOOKS =
#
DIRECTORY_EXPANDED_COOKBOOKS
Easier toplevel-constant to refer to the expanded_cookbooks/ directory.
#
RBT.directory_yaml_expanded_cookbooks
LeanPrototype::ALL_COLOUR_METHODS, LeanPrototype::ARRAY_KDE_KONSOLE_COLOURS_IN_USE, LeanPrototype::DAY_NAMES, LeanPrototype::NAMESPACE, LeanPrototype::SILENT_REDIRECTION
Class Method Summary
collapse
-
.[](i = ARGV) ⇒ Object
# === RBT::Action::Cookbooks::RawCookbook[] ========================================================================= #.
Instance Method Summary
collapse
-
#absolute_path_to_the_cookbook_file? ⇒ Boolean
(also: #cookbook_file?, #yaml_file?, #file?)
# === absolute_path_to_the_cookbook_file? ========================================================================= #.
-
#apply_patch? ⇒ Boolean
(also: #set_apply_patch?)
# === apply_patch? ========================================================================= #.
-
#archive_size? ⇒ Boolean
# === archive_size? ========================================================================= #.
-
#archive_type? ⇒ Boolean
# === archive_type? ========================================================================= #.
-
#autosymlink_lib64? ⇒ Boolean
# === autosymlink_lib64? ========================================================================= #.
-
#base_dir? ⇒ Boolean
# === base_dir? ========================================================================= #.
-
#be_quiet_if_the_file_was_not_found? ⇒ Boolean
# === be_quiet_if_the_file_was_not_found? ========================================================================= #.
-
#binaries? ⇒ Boolean
# === binaries? ========================================================================= #.
-
#blfs? ⇒ Boolean
(also: #blfs_homepage?)
# === blfs? ========================================================================= #.
-
#build_static? ⇒ Boolean
# === build_static? ========================================================================= #.
-
#can_be_compiled_statically? ⇒ Boolean
# === can_be_compiled_statically? ========================================================================= #.
-
#cmake_configure_options? ⇒ Boolean
-
#configure_base_dir? ⇒ Boolean
-
#configure_command_to_use? ⇒ Boolean
-
#configure_options? ⇒ Boolean
-
#configure_options_explained? ⇒ Boolean
-
#copy_source? ⇒ Boolean
# === copy_source? ========================================================================= #.
-
#dataset? ⇒ Boolean
(also: #raw_data?, #hash?, #dataset)
# === dataset?.
-
#description? ⇒ Boolean
# === description? ========================================================================= #.
-
#directory_expanded_cookbooks? ⇒ Boolean
# === directory_expanded_cookbooks? ========================================================================= #.
-
#do_autogenerate_a_new_expanded_cookbook_file_for(i) ⇒ Object
# === do_autogenerate_a_new_expanded_cookbook_file_for ========================================================================= #.
-
#do_not_download? ⇒ Boolean
# === do_not_download? ========================================================================= #.
-
#do_not_symlink? ⇒ Boolean
# === do_not_symlink? ========================================================================= #.
-
#do_not_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file ⇒ Object
(also: #do_not_autogenerate)
# === do_not_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file ========================================================================= #.
-
#echo_yes? ⇒ Boolean
# === echo_yes? ========================================================================= #.
-
#enable_shared? ⇒ Boolean
# === enable_shared? ========================================================================= #.
-
#enable_static? ⇒ Boolean
# === enable_static? ========================================================================= #.
-
#extra_information? ⇒ Boolean
-
#extract_to? ⇒ Boolean
-
#find(for_this_program = search_for_this_program? ) ⇒ Object
(also: #try_to_find)
# === find (find tag) ========================================================================= #.
-
#flatpak_url? ⇒ Boolean
# === flatpak_url? ========================================================================= #.
-
#gir_files? ⇒ Boolean
# === gir_files? ========================================================================= #.
-
#git_url? ⇒ Boolean
# === git_url? ========================================================================= #.
-
#github? ⇒ Boolean
# === github? ========================================================================= #.
-
#has_key?(i) ⇒ Boolean
(also: #key?)
# === has_key?.
-
#has_non_empty_BLFS_entry? ⇒ Boolean
# === has_non_empty_BLFS_entry?.
-
#has_to_be_compiled? ⇒ Boolean
# === has_to_be_compiled? ========================================================================= #.
-
#headers? ⇒ Boolean
-
#homepage? ⇒ Boolean
# === homepage? ========================================================================= #.
-
#initialize(i = ARGV, run_already = true, &block) ⇒ RawCookbook
constructor
# === initialize ========================================================================= #.
-
#installation_steps? ⇒ Boolean
# === installation_steps? ========================================================================= #.
-
#is_an_active_project? ⇒ Boolean
# === is_an_active_project? ========================================================================= #.
-
#is_the_program_included? ⇒ Boolean
# === is_the_program_included? ========================================================================= #.
-
#keep_extracted? ⇒ Boolean
-
#last_update? ⇒ Boolean
# === last_update? ========================================================================= #.
-
#libexec? ⇒ Boolean
# === libexec? ========================================================================= #.
-
#libraries? ⇒ Boolean
# === libraries? ========================================================================= #.
-
#licence? ⇒ Boolean
# === licence? ========================================================================= #.
-
#load_up_the_dataset(for_this_program = first_argument? ) ⇒ Object
(also: #this_file=, #load_this_file, #load_this_program, #load_this_cookbook_file)
# === load_up_the_dataset.
-
#load_what? ⇒ Boolean
(also: #mode?)
# === load_what? ========================================================================= #.
-
#localstatedir? ⇒ Boolean
# === localstatedir? ========================================================================= #.
-
#m4_files? ⇒ Boolean
# === m4_files? ========================================================================= #.
-
#maintainer? ⇒ Boolean
# === maintainer? ========================================================================= #.
-
#manual_steps? ⇒ Boolean
# === manual_steps? ========================================================================= #.
-
#may_we_modify_the_configure_options? ⇒ Boolean
-
#md5sum? ⇒ Boolean
# === md5sum? ========================================================================= #.
-
#menu(i = return_hyphened_commandline_arguments) ⇒ Object
-
#meson_configure_options? ⇒ Boolean
-
#mirror? ⇒ Boolean
# === mirror? ========================================================================= #.
-
#modify_the_makefile? ⇒ Boolean
# === modify_the_makefile? ========================================================================= #.
-
#obtain(i) ⇒ Object
# === obtain (obtain tag) ========================================================================= #.
-
#optional_start_message? ⇒ Boolean
# === optional_start_message? ========================================================================= #.
-
#override? ⇒ Boolean
# === override? ========================================================================= #.
-
#parameters_to_make? ⇒ Boolean
# === parameters_to_make? ========================================================================= #.
-
#pkgconfig_files? ⇒ Boolean
# === pkgconfig_files? ========================================================================= #.
-
#postinstall? ⇒ Boolean
# === postinstall? ========================================================================= #.
-
#pre_configure_steps? ⇒ Boolean
-
#pre_make_commands? ⇒ Boolean
# === pre_make_commands? ========================================================================= #.
-
#pre_make_install_sed? ⇒ Boolean
# === pre_make_install_sed? ========================================================================= #.
-
#prefix? ⇒ Boolean
# === prefix? ========================================================================= #.
-
#preinstall? ⇒ Boolean
# === preinstall? ========================================================================= #.
-
#pretty_show_the_dataset ⇒ Object
# === pretty_show_the_dataset ========================================================================= #.
-
#program_name? ⇒ Boolean
# === program_name? ========================================================================= #.
-
#program_name_and_program_version? ⇒ Boolean
# === program_name_and_program_version? ========================================================================= #.
-
#program_path? ⇒ Boolean
# === program_path? ========================================================================= #.
-
#program_version? ⇒ Boolean
# === program_version? ========================================================================= #.
-
#rating? ⇒ Boolean
# === rating? ========================================================================= #.
-
#recommended_deps_on? ⇒ Boolean
# === recommended_deps_on? ========================================================================= #.
-
#required_deps_on? ⇒ Boolean
(also: #deps?, #required_dependencies_on?)
# === required_deps_on? ========================================================================= #.
-
#reset ⇒ Object
# === reset (reset tag) ========================================================================= #.
-
#reset_the_internal_variables ⇒ Object
(also: #reset_the_internal_state)
# === reset_the_internal_variables ========================================================================= #.
-
#reset_the_main_hash ⇒ Object
(also: #clear, #unfreeze)
# === reset_the_main_hash ========================================================================= #.
-
#ruby_premake_commands? ⇒ Boolean
# === ruby_premake_commands? ========================================================================= #.
-
#run ⇒ Object
# === run (run tag) ========================================================================= #.
-
#run_configure? ⇒ Boolean
-
#run_ldconfig? ⇒ Boolean
# === run_ldconfig? ========================================================================= #.
-
#run_make? ⇒ Boolean
# === run_make? ========================================================================= #.
-
#run_make_check? ⇒ Boolean
# === run_make_check? ========================================================================= #.
-
#search_for_this_program? ⇒ Boolean
# === search_for_this_program? ========================================================================= #.
-
#sed? ⇒ Boolean
# === sed? ========================================================================= #.
-
#set_absolute_path_to_the_cookbook_file(i) ⇒ Object
# === set_absolute_path_to_the_cookbook_file ========================================================================= #.
-
#set_autogenerate_expanded_dataset(i) ⇒ Object
# === set_autogenerate_expanded_dataset ========================================================================= #.
-
#set_complex ⇒ Object
# === set_complex ========================================================================= #.
-
#set_env_variables? ⇒ Boolean
# === set_env_variables? ========================================================================= #.
-
#set_load_simple_or_expanded_cookbook_variant(i = :expanded_cookbook) ⇒ Object
(also: #set_load_what, #set_mode)
# === set_load_simple_or_expanded_cookbook_variant ========================================================================= #.
-
#set_search_for_this_program(i = first_argument? ) ⇒ Object
# === set_search_for_this_program ========================================================================= #.
-
#set_simple ⇒ Object
# === set_simple ========================================================================= #.
-
#set_the_default_value_for_the_cookbook_variant ⇒ Object
# === set_the_default_value_for_the_cookbook_variant ========================================================================= #.
-
#shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file? ⇒ Boolean
# === shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file? ========================================================================= #.
-
#short_description? ⇒ Boolean
(also: #short_desc?)
# === short_description? ========================================================================= #.
-
#short_name? ⇒ Boolean
# === short_name? ========================================================================= #.
-
#show_help ⇒ Object
# === show_help (help tag) ========================================================================= #.
-
#sub_dir? ⇒ Boolean
# === sub_dir? ========================================================================= #.
-
#svn_url? ⇒ Boolean
# === svn_url? ========================================================================= #.
-
#symlink_glib_schema? ⇒ Boolean
# === symlink_glib_schema? ========================================================================= #.
-
#symlink_headers? ⇒ Boolean
-
#symlink_pkgconfig_files? ⇒ Boolean
# === symlink_pkgconfig_files? ========================================================================= #.
-
#tags? ⇒ Boolean
-
#the_program_is_included ⇒ Object
# === the_program_is_included ========================================================================= #.
-
#the_program_is_not_included ⇒ Object
# === the_program_is_not_included ========================================================================= #.
-
#toggle_the_state(i = load_what? ) ⇒ Object
(also: #toggle)
# === toggle_the_state (toggle tag) ========================================================================= #.
-
#url1? ⇒ Boolean
# === url1? ========================================================================= #.
-
#url2? ⇒ Boolean
# === url2? ========================================================================= #.
-
#url3? ⇒ Boolean
# === url3? ========================================================================= #.
-
#url4? ⇒ Boolean
# === url4? ========================================================================= #.
-
#url5? ⇒ Boolean
# === url5? ========================================================================= #.
-
#use_autoconf? ⇒ Boolean
# === use_autoconf? ========================================================================= #.
-
#use_autogen? ⇒ Boolean
# === use_autogen? ========================================================================= #.
-
#use_build_directory? ⇒ Boolean
# === use_build_directory? ========================================================================= #.
-
#use_glib_schema? ⇒ Boolean
# === use_glib_schema? ========================================================================= #.
-
#use_this_build_directory? ⇒ Boolean
# === use_this_build_directory? ========================================================================= #.
-
#use_this_build_system? ⇒ Boolean
(also: #use_which_build_system?)
# === use_this_build_system? ========================================================================= #.
-
#use_this_make_command? ⇒ Boolean
# === use_this_make_command? ========================================================================= #.
-
#use_this_make_install_command? ⇒ Boolean
# === use_this_make_install_command? ========================================================================= #.
-
#use_this_program_name? ⇒ Boolean
# === use_this_program_name? ========================================================================= #.
-
#use_this_program_name_on_gobolinux? ⇒ Boolean
# === use_this_program_name_on_gobolinux? ========================================================================= #.
-
#wikipedia? ⇒ Boolean
# === wikipedia? ========================================================================= #.
#a_or_an?, #abbreviations?, #absolute_path, #action, #add_to_the_commandline_arguments, #all_binaries?, #all_files_from, #all_libraries?, #allowed_cookbook_entries?, #appdir_location_of?, #append_onto_the_internal_hash, #append_what_into, #archive_type_of?, #available_programs?, #be_quiet?, #be_verbose?, #begins_with_a_comment?, #capitalize_first_alphabetical_character, #cd_to_the_log_directory, #cd_to_the_temp_directory, #change_directory, #change_permission, #cheering_person?, #chmod, #chop_off_archive, #clear_commandline_options, #cliner, #coloured_and_padded_e, #coloured_and_padded_esystem, #coloured_esystem, #colourize_directory_for_system_results, #colourize_this_error, #colourize_this_file_path, #colourize_this_warning, #commandline_arguments?, #commandline_arguments_without_hyphens?, #comment, #convert_dd_mm_yyyy_to_its_long_variant, #convert_env_variable, #copy_directory, #copy_files, #cpr, #create_directory, #current_hour?, #dd_mmm_yyy, #debug, #debug?, #disable_colours, #display_md5sum?, #do_not_debug, #does_the_cookbook_include_this_program?, #does_this_expanded_cookbook_file_exist_for_this_program?, #does_this_file_exist?, #does_this_file_exist_and_is_it_a_file?, #e, #eblue, #ecomment, #ecrimson, #edir, #editor?, #efancy, #eimp, #enable_colours, #enable_debug, #ensure_main_encoding_for, #eparse, #esystem, #esystem_gold, #etomato, #ewarn, #exit_program, #expanded_cookbooks_directory_exists?, #extract_this_archive, #file_compiled_programs?, #file_dirname_retaining_trailing_slash, #file_predefined_installation_instructions?, #file_specification_of_registered_cookbook_entries, #find_cookbook_alias_for, #find_this_yaml_file, #first_argument?, #first_non_hyphen_argument?, #get_all_directories_from, #get_all_files_from, #get_all_programs, #get_date, #get_extended_date, #get_files_and_directories_from, #go_to_base_dir, #home_dir?, #host_system?, #infer_the_namespace, #internal_hash?, #internal_hash_set_commandline_arguments, #is_an_archive?, #is_directory?, #is_file?, #is_github_url?, #is_make_available?, #is_on_gobolinux?, #is_on_windows?, #is_roebe?, #is_superuser?, #is_symlink?, #is_this_a_header?, #is_this_a_library?, #is_this_program_included?, #iso_encoding?, #load_dataset_from_this_expanded_cookbook, #load_yaml, #load_yaml_file_from_the_cookbook_directory_for_this_program, #log_directory?, #main_encoding?, #meson_build_file_exists?, #months?, #move_file, #n_programs_are_available?, #n_programs_available?, #namespace?, #no_directory_exists_at, #no_opn, #no_such_file_exists, #open_in_browser, #open_in_editor, #opncomment, #opne, #opnef, #opnerev, #opnerror, #opnesystem, #opnewarn, #opnfancy, #opnn, #packages_directory?, #path_to_this_expanded_cookbooks_dataset, #pkgconfig_directory?, #populate_the_internal_hash_with_default_values, #predefined_installation_instructions?, #prepend_this_commandline_argument, #program_version_of?, #project_base_directory?, #project_yaml_directory?, #query_path?, #rarrow?, #read_file, #read_file_in_default_encoding, #read_file_with_default_encoding, #readlines, #readlines_with_proper_encoding, #register_sigint, #registered_cookbook_entries?, #remove, #remove_archive_from_the_end, #remove_comments_from_each_line, #remove_directory, #remove_double_slashes, #remove_file, #remove_newlines, #remove_parens, #remove_symlink, #remove_this_commandline_argument, #remove_this_entry_from_the_commandline_arguments, #remove_trailing_ANSII_escape_code, #remove_unnecessary_data_from_url, #rename, #report_pwd, #require_the_rbt_aliases, #reset_the_internal_hash, #return_all_archives_from_this_directory, #return_appdir_prefix, #return_commandline_arguments_with_leading_hyphens, #return_current_hour_minutes_second, #return_date, #return_day_of_the_month_based_on_utc, #return_full_time, #return_hours_minutes_seconds_based_on_utc, #return_location_to_this_programs_yaml_file, #return_month_based_on_this_number, #return_month_based_on_utc, #return_opnn, #return_program_information, #return_program_name_for_gobolinux_systems, #return_pwd, #return_unicode_warning_symbol_or_empty_string, #return_utc, #return_utc_time_in_a_format_similar_to_slackware, #return_weekday_based_on_utc, #return_year_based_on_utc, #rev, #run_simulation=, #run_simulation?, #sdir, #sdir_return_pwd, #set_be_silent, #set_be_verbose, #set_first_commandline_argument, #set_namespace, #set_use_opn, #set_xorg_buffer, #sfancy, #sfile, #silent_redirection?, #silently_create_this_directory_if_it_does_not_yet_exist, #simp, #source_base_directory?, #ssym, #stderr, #store_into_this_directory?, #string_right_arrow?, #swarn, #symlink, #sysbin_directory?, #sysetc_directory?, #sysinclude_directory?, #syslib_directory?, #sysshare_directory?, #system_directory?, #temp_directory?, #to_bool, #to_camelcase, #to_iso_encoding, #to_unicode, #today?, #touch, #try_to_require_beautiful_url, #try_to_require_the_environment_information_gem, #try_to_require_the_extracter_gem, #try_to_require_the_open_gem, #try_to_require_the_xorg_buffer, #try_to_require_wget, #try_to_return_a_special_compile_component, #unicode_cliner, #unicode_middle_cliner, #use_colours=, #use_colours?, #use_opn=, #use_opn?, #utf_encoding?, #verbose_truth, #word_wrap, #write_what_into, #write_what_into_via_unicode, #yes_or_no
Constructor Details
#initialize(i = ARGV, run_already = true, &block) ⇒ RawCookbook
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
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 59
def initialize(
i = ARGV,
run_already = true,
&block
)
reset
set_commandline_arguments(i)
case run_already
when :do_not_run_yet
run_already = false
end
if block_given?
yielded = yield
case yielded
when :do_not_run_yet
run_already = false
when :simple,
:simple_cookbook
set_load_what(:simple_cookbook)
when :use_expanded_dataset,
:use_the_expanded_dataset,
:fast,
:complex
set_complex
when :be_quiet_if_the_file_was_not_found
@internal_hash[:be_quiet_if_the_file_was_not_found] = true
end
end
run if run_already
end
|
Class Method Details
.[](i = ARGV) ⇒ Object
#
RBT::Action::Cookbooks::RawCookbook[]
#
1372
1373
1374
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1372
def self.[](i = ARGV)
new(i)
end
|
Instance Method Details
#absolute_path_to_the_cookbook_file? ⇒ Boolean
Also known as:
cookbook_file?, yaml_file?, file?
#
absolute_path_to_the_cookbook_file?
#
1061
1062
1063
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1061
def absolute_path_to_the_cookbook_file?
@internal_hash[:absolute_path_to_the_cookbook_file]
end
|
#apply_patch? ⇒ Boolean
Also known as:
set_apply_patch?
477
478
479
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 477
def apply_patch?
obtain(__method__.to_s.delete('?'))
end
|
#archive_size? ⇒ Boolean
826
827
828
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 826
def archive_size?
obtain(__method__.to_s.delete('?'))
end
|
#archive_type? ⇒ Boolean
610
611
612
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 610
def archive_type?
obtain(__method__.to_s.delete('?'))
end
|
#autosymlink_lib64? ⇒ Boolean
603
604
605
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 603
def autosymlink_lib64?
obtain(__method__.to_s.delete('?'))
end
|
#base_dir? ⇒ Boolean
1029
1030
1031
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1029
def base_dir?
obtain(__method__.to_s.delete('?'))
end
|
#be_quiet_if_the_file_was_not_found? ⇒ Boolean
#
be_quiet_if_the_file_was_not_found?
#
231
232
233
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 231
def be_quiet_if_the_file_was_not_found?
@internal_hash[:be_quiet_if_the_file_was_not_found]
end
|
#binaries? ⇒ Boolean
449
450
451
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 449
def binaries?
obtain(__method__.to_s.delete('?'))
end
|
#blfs? ⇒ Boolean
Also known as:
blfs_homepage?
1343
1344
1345
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1343
def blfs?
obtain(__method__.to_s.delete('?'))
end
|
#build_static? ⇒ Boolean
596
597
598
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 596
def build_static?
obtain(__method__.to_s.delete('?'))
end
|
#can_be_compiled_statically? ⇒ Boolean
#
can_be_compiled_statically?
#
645
646
647
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 645
def can_be_compiled_statically?
obtain(__method__.to_s.delete('?'))
end
|
959
960
961
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 959
def cmake_configure_options?
obtain(__method__.to_s.delete('?'))
end
|
805
806
807
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 805
def configure_base_dir?
obtain(__method__.to_s.delete('?'))
end
|
659
660
661
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 659
def configure_command_to_use?
obtain(__method__.to_s.delete('?'))
end
|
966
967
968
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 966
def configure_options?
obtain(__method__.to_s.delete('?'))
end
|
945
946
947
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 945
def configure_options_explained?
obtain(__method__.to_s.delete('?'))
end
|
#copy_source? ⇒ Boolean
833
834
835
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 833
def copy_source?
obtain(__method__.to_s.delete('?'))
end
|
#dataset? ⇒ Boolean
Also known as:
raw_data?, hash?, dataset
#
dataset?
Query method over the main dataset - the most important dataset for this class.
#
316
317
318
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 316
def dataset?
@internal_hash[:dataset_from_the_yaml_file]
end
|
#description? ⇒ Boolean
421
422
423
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 421
def description?
obtain(__method__.to_s.delete('?'))
end
|
#directory_expanded_cookbooks? ⇒ Boolean
#
directory_expanded_cookbooks?
#
#do_autogenerate_a_new_expanded_cookbook_file_for(i) ⇒ Object
#
do_autogenerate_a_new_expanded_cookbook_file_for
#
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1320
def do_autogenerate_a_new_expanded_cookbook_file_for(i)
opne "#{rev}The .yml file does not exist at #{sfile(i)}#{rev}. As we are"
opne "#{rev}on a roebe-system, this .yml file will be generated now."
target = File.basename(i).delete_suffix('.yml')
set_load_what(:simple_cookbook)
load_up_the_dataset
sanitize_cookbook = action(:sanitize_cookbook, target) { :do_not_instantiate_a_new_raw_cookbook }
sanitize_cookbook.merge_in_this_dataset(dataset?)
sanitize_cookbook.set_raw_cookbook(self)
sanitize_cookbook.do_convert_the_dataset(
dataset?['url1'],
dataset?['url2']
)
RBT.store_this_expanded_dataset_into_that_yaml_file(
sanitize_cookbook.dataset?,
i
)
end
|
#do_not_download? ⇒ Boolean
638
639
640
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 638
def do_not_download?
obtain(__method__.to_s.delete('?'))
end
|
#do_not_symlink? ⇒ Boolean
680
681
682
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 680
def do_not_symlink?
obtain(__method__.to_s.delete('?'))
end
|
#do_not_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file ⇒ Object
Also known as:
do_not_autogenerate
#
do_not_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file
#
192
193
194
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 192
def do_not_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file
@internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file] = false
end
|
#echo_yes? ⇒ Boolean
617
618
619
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 617
def echo_yes?
obtain(__method__.to_s.delete('?'))
end
|
#enable_shared? ⇒ Boolean
624
625
626
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 624
def enable_shared?
obtain(__method__.to_s.delete('?'))
end
|
#enable_static? ⇒ Boolean
631
632
633
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 631
def enable_static?
obtain(__method__.to_s.delete('?'))
end
|
378
379
380
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 378
def
obtain(__method__.to_s.delete('?'))
end
|
1015
1016
1017
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1015
def
obtain(__method__.to_s.delete('?'))
end
|
#find(for_this_program = search_for_this_program?
) ⇒ Object
Also known as:
try_to_find
785
786
787
788
789
790
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 785
def find(
for_this_program = search_for_this_program?
)
reset_the_internal_variables
load_up_the_dataset(for_this_program)
end
|
#flatpak_url? ⇒ Boolean
722
723
724
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 722
def flatpak_url?
obtain(__method__.to_s.delete('?'))
end
|
#gir_files? ⇒ Boolean
568
569
570
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 568
def gir_files?
obtain(__method__.to_s.delete('?'))
end
|
#git_url? ⇒ Boolean
575
576
577
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 575
def git_url?
obtain(__method__.to_s.delete('?'))
end
|
#github? ⇒ Boolean
1022
1023
1024
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1022
def github?
obtain(__method__.to_s.delete('?'))
end
|
#has_key?(i) ⇒ Boolean
Also known as:
key?
#
has_key?
Query method to determine whether a specific key is present in this class.
#
798
799
800
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 798
def has_key?(i)
dataset?.has_key?(i)
end
|
#has_non_empty_BLFS_entry? ⇒ Boolean
#
has_non_empty_BLFS_entry?
This method will return true if the :blfs entry is NOT empty. This will include nil, an empty String as well as an empty Array.
#
1353
1354
1355
1356
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1353
def has_non_empty_BLFS_entry?
_ = blfs?
_ and !_.empty?
end
|
#has_to_be_compiled? ⇒ Boolean
428
429
430
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 428
def has_to_be_compiled?
obtain(__method__.to_s.delete('?'))
end
|
484
485
486
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 484
def
obtain(__method__.to_s.delete('?'))
end
|
#homepage? ⇒ Boolean
973
974
975
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 973
def homepage?
obtain(__method__.to_s.delete('?'))
end
|
#installation_steps? ⇒ Boolean
491
492
493
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 491
def installation_steps?
obtain(__method__.to_s.delete('?'))
end
|
#is_an_active_project? ⇒ Boolean
#
is_an_active_project?
#
666
667
668
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 666
def is_an_active_project?
obtain(__method__.to_s.delete('?'))
end
|
#is_the_program_included? ⇒ Boolean
#
is_the_program_included?
#
299
300
301
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 299
def is_the_program_included?
@internal_hash[:is_the_program_included]
end
|
687
688
689
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 687
def
obtain(__method__.to_s.delete('?'))
end
|
#last_update? ⇒ Boolean
456
457
458
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 456
def last_update?
obtain(__method__.to_s.delete('?'))
end
|
#libexec? ⇒ Boolean
708
709
710
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 708
def libexec?
obtain(__method__.to_s.delete('?'))
end
|
#libraries? ⇒ Boolean
385
386
387
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 385
def libraries?
obtain(__method__.to_s.delete('?'))
end
|
#licence? ⇒ Boolean
339
340
341
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 339
def licence?
obtain(__method__.to_s.delete('?'))
end
|
#load_up_the_dataset(for_this_program = first_argument?
) ⇒ Object
Also known as:
this_file=, load_this_file, load_this_program, load_this_cookbook_file
#
load_up_the_dataset
This method will load the dataset from the .yml file.
#
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1225
def load_up_the_dataset(
for_this_program = first_argument?
)
unless for_this_program.is_a? String
for_this_program = for_this_program.to_s
end
return unless ::RBT.is_this_program_included?(for_this_program)
original_name = for_this_program.dup
case load_what?
when :simple_cookbook,
:default,
:simple
_ = RBT.cookbook_directory?+
for_this_program.to_s
when :expanded_cookbook,
:expanded,
:complex
_ = ::RBT.directory_expanded_cookbooks?+
for_this_program.to_s
end
_ = _.dup
_ << '.yml' unless _.end_with?('.yml') or _.empty?
_ = absolute_path(_) if !File.exist?(_) and shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file?
do_autogenerate_a_new_expanded_cookbook_file_for(_)
end
if File.exist? _
the_program_is_included
set_absolute_path_to_the_cookbook_file(_)
require 'rbt/actions/individual_actions/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb'
if RBT.does_this_yaml_file_have_two_url1_entries?(cookbook_file?)
opne 'Please fix the above issue first before we can continue here.'
exit
end
yaml_dataset = load_yaml(cookbook_file?)
if dataset?.frozen?
@internal_hash[:dataset_from_the_yaml_file] = @internal_hash[:dataset_from_the_yaml_file].dup
end
if yaml_dataset.nil?
e "#{rev}No value found for the file #{sfile(cookbook_file?)}#{rev}."
end
@internal_hash[:dataset_from_the_yaml_file].update(yaml_dataset) if yaml_dataset
if @internal_hash[:dataset_from_the_yaml_file].has_key?(original_name) and !@internal_hash[:dataset_from_the_yaml_file].has_value?(original_name)
@internal_hash[:dataset_from_the_yaml_file] = @internal_hash[:dataset_from_the_yaml_file][original_name]
end
@internal_hash[:dataset_from_the_yaml_file].freeze
else
the_program_is_not_included
unless be_quiet_if_the_file_was_not_found?
opnn; no_file_exists_at(_)
end
end
return @internal_hash[:dataset_from_the_yaml_file] end
|
#load_what? ⇒ Boolean
Also known as:
mode?
346
347
348
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 346
def load_what?
@internal_hash[:load_simple_or_expanded_cookbook_variant]
end
|
#localstatedir? ⇒ Boolean
701
702
703
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 701
def localstatedir?
obtain(__method__.to_s.delete('?'))
end
|
#m4_files? ⇒ Boolean
694
695
696
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 694
def m4_files?
obtain(__method__.to_s.delete('?'))
end
|
#maintainer? ⇒ Boolean
1008
1009
1010
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1008
def maintainer?
obtain(__method__.to_s.delete('?'))
end
|
#manual_steps? ⇒ Boolean
1001
1002
1003
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1001
def manual_steps?
obtain(__method__.to_s.delete('?'))
end
|
736
737
738
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 736
def may_we_modify_the_configure_options?
obtain(__method__.to_s.delete('?'))
end
|
#md5sum? ⇒ Boolean
994
995
996
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 994
def md5sum?
obtain(__method__.to_s.delete('?'))
end
|
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1187
def (
i = return_hyphened_commandline_arguments
)
if i.is_a? Array
i.each {|entry| (entry) }
else
case i
when /^-?-?do(-|_)?not(-|_)?autogenerate$/i
do_not_autogenerate
when /^-?-?simple$/i
set_simple
when /^-?-?complex$/i,
/^-?-?expanded$/i
set_complex
when /help/
show_help
exit
end
end
end
|
952
953
954
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 952
def meson_configure_options?
obtain(__method__.to_s.delete('?'))
end
|
#mirror? ⇒ Boolean
729
730
731
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 729
def mirror?
obtain(__method__.to_s.delete('?'))
end
|
#modify_the_makefile? ⇒ Boolean
840
841
842
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 840
def modify_the_makefile?
obtain(__method__.to_s.delete('?'))
end
|
#obtain(i) ⇒ Object
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1036
def obtain(i)
result = nil
dataset = dataset?
if dataset
string_key = i.to_s if dataset.has_key? string_key
result = dataset[i]
elsif dataset.has_key? string_key.to_sym
result = dataset[string_key.to_sym]
else
end
return result
end
end
|
#optional_start_message? ⇒ Boolean
#
optional_start_message?
#
847
848
849
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 847
def optional_start_message?
obtain(__method__.to_s.delete('?'))
end
|
#override? ⇒ Boolean
854
855
856
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 854
def override?
obtain(__method__.to_s.delete('?'))
end
|
#parameters_to_make? ⇒ Boolean
554
555
556
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 554
def parameters_to_make?
obtain(__method__.to_s.delete('?'))
end
|
#pkgconfig_files? ⇒ Boolean
582
583
584
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 582
def pkgconfig_files?
obtain(__method__.to_s.delete('?'))
end
|
#postinstall? ⇒ Boolean
498
499
500
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 498
def postinstall?
obtain(__method__.to_s.delete('?'))
end
|
561
562
563
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 561
def pre_configure_steps?
obtain(__method__.to_s.delete('?'))
end
|
#pre_make_commands? ⇒ Boolean
512
513
514
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 512
def pre_make_commands?
obtain(__method__.to_s.delete('?'))
end
|
#pre_make_install_sed? ⇒ Boolean
#
pre_make_install_sed?
#
868
869
870
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 868
def pre_make_install_sed?
obtain(__method__.to_s.delete('?'))
end
|
#prefix? ⇒ Boolean
861
862
863
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 861
def prefix?
obtain(__method__.to_s.delete('?'))
end
|
#preinstall? ⇒ Boolean
540
541
542
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 540
def preinstall?
obtain(__method__.to_s.delete('?'))
end
|
#pretty_show_the_dataset ⇒ Object
#
pretty_show_the_dataset
#
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
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1070
def pretty_show_the_dataset
dataset = dataset?
pp dataset
e
print Colours.rev
Cliner.cliner
e Colours::HtmlColoursMethods.steelblue('This dataset was read from this file: ')+
Colours.sfile(cookbook_file?)
e Colours::HtmlColoursMethods.steelblue('The mode is: '.ljust(38))+
Colours::HtmlColoursMethods.olivedrab(':'+mode?.to_s)
e Colours::HtmlColoursMethods.steelblue('base_dir: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(base_dir?.to_s)
e Colours::HtmlColoursMethods.steelblue('program_name_and_program_version: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(program_name_and_program_version?.to_s)
e Colours::HtmlColoursMethods.steelblue('program_path: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(program_path?.to_s)
e Colours::HtmlColoursMethods.steelblue('The url1 entry is: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(url1?.to_s)
if url2? and !url2?.empty?
e Colours::HtmlColoursMethods.steelblue('The url2 entry is: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(url2?.to_s)
end
if homepage? and !homepage?.empty?
e Colours::HtmlColoursMethods.steelblue('The homepage entry is: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(homepage?.to_s)
end
e Colours::HtmlColoursMethods.steelblue('apply_patch entry is: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(apply_patch?.to_s)
if and !.empty?
e Colours::HtmlColoursMethods.steelblue('headers entry is: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(.to_s[0 .. 40]+'[...]')
end
e Colours::HtmlColoursMethods.steelblue('prefix: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(prefix?.to_s)
e Colours::HtmlColoursMethods.steelblue('use build directory: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(use_build_directory?.to_s)
if gir_files? and !gir_files?.empty?
e Colours::HtmlColoursMethods.steelblue('gir files: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(gir_files?.join(' ').to_s)
end
if pkgconfig_files? and !pkgconfig_files?.empty?
e Colours::HtmlColoursMethods.steelblue('pkgconfig files: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(pkgconfig_files?.join(' ').to_s)
end
if symlink_pkgconfig_files? and !symlink_pkgconfig_files?.to_s.empty?
e Colours::HtmlColoursMethods.steelblue('symlink pkgconfig files: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(symlink_pkgconfig_files?.to_s)
end
e Colours::HtmlColoursMethods.steelblue('symlink headers: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(.to_s)
if configure_command_to_use? and !configure_command_to_use?.empty?
e Colours::HtmlColoursMethods.steelblue('configure_command_to_use: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(configure_command_to_use?.to_s)
end
unless flatpak_url?.to_s.empty?
e Colours::HtmlColoursMethods.steelblue('flatpak_url: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(flatpak_url?.to_s)
end
e Colours::HtmlColoursMethods.steelblue('configure_base_dir: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(configure_base_dir?.to_s)
if configure_options? and !configure_options?.empty?
e Colours::HtmlColoursMethods.steelblue('configure_options: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(
configure_options?.to_s.tr("\n",' ').strip.squeeze(' ')
)
end
=
if and !.empty?
content = .tr("\n",' ').strip.squeeze(' ')
if content.size > 35
content = content[0 .. 35]+' [...]'
end
e Colours::HtmlColoursMethods.steelblue('extra_information: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(
content
)
end
if meson_configure_options? and !meson_configure_options?.empty?
e Colours::HtmlColoursMethods.steelblue('meson_configure_options: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(
meson_configure_options?.to_s.tr("\n",' ').strip.squeeze(' ')
)
end
if use_this_build_system? and !use_this_build_system?.empty?
e Colours::HtmlColoursMethods.steelblue('use_this_build_system: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(use_this_build_system?.to_s)
end
if modify_the_makefile? and !modify_the_makefile?.to_s.empty?
e Colours::HtmlColoursMethods.steelblue('modify_the_makefile: '.ljust(38))+
Colours::HtmlColoursMethods.lightgreen(modify_the_makefile?.to_s)
end; ee rev
Cliner.cliner
e
end
|
#program_name? ⇒ Boolean
325
326
327
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 325
def program_name?
obtain(__method__.to_s.delete('?'))
end
|
#program_name_and_program_version? ⇒ Boolean
#
program_name_and_program_version?
#
819
820
821
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 819
def program_name_and_program_version?
obtain(__method__.to_s.delete('?'))
end
|
#program_path? ⇒ Boolean
442
443
444
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 442
def program_path?
obtain(__method__.to_s.delete('?'))
end
|
#program_version? ⇒ Boolean
399
400
401
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 399
def program_version?
obtain(__method__.to_s.delete('?'))
end
|
#rating? ⇒ Boolean
875
876
877
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 875
def rating?
obtain(__method__.to_s.delete('?'))
end
|
#recommended_deps_on? ⇒ Boolean
882
883
884
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 882
def recommended_deps_on?
obtain(__method__.to_s.delete('?'))
end
|
#required_deps_on? ⇒ Boolean
Also known as:
deps?, required_dependencies_on?
392
393
394
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 392
def required_deps_on?
obtain(__method__.to_s.delete('?'))
end
|
#reset ⇒ Object
113
114
115
116
117
118
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 113
def reset
super()
reset_the_internal_variables
infer_the_namespace
set_the_default_value_for_the_cookbook_variant
end
|
#reset_the_internal_variables ⇒ Object
Also known as:
reset_the_internal_state
#
reset_the_internal_variables
#
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
180
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 145
def reset_the_internal_variables
@internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file] = false
if is_on_roebe?
@internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file] = true
end
@internal_hash[:is_the_program_included] = false
@internal_hash[:dataset_from_the_yaml_file] = {}
@internal_hash[:be_quiet_if_the_file_was_not_found] = false
@internal_hash[:absolute_path_to_the_cookbook_file] = nil
end
|
#reset_the_main_hash ⇒ Object
Also known as:
clear, unfreeze
370
371
372
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 370
def reset_the_main_hash
@internal_hash[:dataset_from_the_yaml_file] = {}
end
|
#ruby_premake_commands? ⇒ Boolean
#
ruby_premake_commands?
#
889
890
891
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 889
def ruby_premake_commands?
obtain(__method__.to_s.delete('?'))
end
|
#run ⇒ Object
1361
1362
1363
1364
1365
1366
1367
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1361
def run
(
return_hyphened_commandline_arguments
)
set_search_for_this_program(:first_argument) load_up_the_dataset
end
|
505
506
507
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 505
def run_configure?
obtain(__method__.to_s.delete('?'))
end
|
#run_ldconfig? ⇒ Boolean
715
716
717
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 715
def run_ldconfig?
obtain(__method__.to_s.delete('?'))
end
|
#run_make? ⇒ Boolean
896
897
898
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 896
def run_make?
obtain(__method__.to_s.delete('?'))
end
|
#run_make_check? ⇒ Boolean
903
904
905
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 903
def run_make_check?
obtain(__method__.to_s.delete('?'))
end
|
#search_for_this_program? ⇒ Boolean
#
search_for_this_program?
#
278
279
280
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 278
def search_for_this_program?
@internal_hash[:search_for_this_program]
end
|
#sed? ⇒ Boolean
910
911
912
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 910
def sed?
obtain(__method__.to_s.delete('?'))
end
|
#set_absolute_path_to_the_cookbook_file(i) ⇒ Object
#
set_absolute_path_to_the_cookbook_file
#
224
225
226
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 224
def set_absolute_path_to_the_cookbook_file(i)
@internal_hash[:absolute_path_to_the_cookbook_file] = i
end
|
#set_autogenerate_expanded_dataset(i) ⇒ Object
#
set_autogenerate_expanded_dataset
#
208
209
210
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 208
def set_autogenerate_expanded_dataset(i)
@internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file] = i
end
|
#set_complex ⇒ Object
199
200
201
202
203
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 199
def set_complex
reset_the_internal_variables
set_load_what(:expanded_cookbook)
load_up_the_dataset
end
|
#set_env_variables? ⇒ Boolean
470
471
472
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 470
def set_env_variables?
obtain(__method__.to_s.delete('?'))
end
|
#set_load_simple_or_expanded_cookbook_variant(i = :expanded_cookbook) ⇒ Object
Also known as:
set_load_what, set_mode
#
set_load_simple_or_expanded_cookbook_variant
#
249
250
251
252
253
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 249
def set_load_simple_or_expanded_cookbook_variant(
i = :expanded_cookbook
)
@internal_hash[:load_simple_or_expanded_cookbook_variant] = i
end
|
#set_search_for_this_program(i = first_argument?
) ⇒ Object
#
set_search_for_this_program
#
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 259
def set_search_for_this_program(
i = first_argument?
)
case i
when :default,
:first_argument
i = first_argument?
end
@internal_hash[:search_for_this_program] = i
end
|
#set_simple ⇒ Object
215
216
217
218
219
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 215
def set_simple
reset_the_internal_variables
set_load_what(:simple_cookbook)
load_up_the_dataset
end
|
#set_the_default_value_for_the_cookbook_variant ⇒ Object
#
set_the_default_value_for_the_cookbook_variant
#
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 123
def set_the_default_value_for_the_cookbook_variant
@internal_hash[:load_simple_or_expanded_cookbook_variant] = :expanded_cookbook
end
|
#shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file? ⇒ Boolean
#
shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file?
#
185
186
187
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 185
def shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file?
@internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file]
end
|
#short_description? ⇒ Boolean
Also known as:
short_desc?
526
527
528
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 526
def short_description?
obtain(__method__.to_s.delete('?'))
end
|
#short_name? ⇒ Boolean
673
674
675
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 673
def short_name?
obtain(__method__.to_s.delete('?'))
end
|
#show_help ⇒ Object
238
239
240
241
242
243
244
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 238
def show_help
e 'Available options:'
e
eparse ' --complex # use the expanded dataset rather '\
'than the simple .yml file'
e
end
|
#sub_dir? ⇒ Boolean
917
918
919
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 917
def sub_dir?
obtain(__method__.to_s.delete('?'))
end
|
#svn_url? ⇒ Boolean
764
765
766
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 764
def svn_url?
obtain(__method__.to_s.delete('?'))
end
|
#symlink_glib_schema? ⇒ Boolean
743
744
745
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 743
def symlink_glib_schema?
obtain(__method__.to_s.delete('?'))
end
|
652
653
654
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 652
def
obtain(__method__.to_s.delete('?'))
end
|
#symlink_pkgconfig_files? ⇒ Boolean
#
symlink_pkgconfig_files?
#
589
590
591
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 589
def symlink_pkgconfig_files?
obtain(__method__.to_s.delete('?'))
end
|
332
333
334
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 332
def tags?
obtain(__method__.to_s.delete('?'))
end
|
#the_program_is_included ⇒ Object
#
the_program_is_included
#
292
293
294
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 292
def the_program_is_included
@internal_hash[:is_the_program_included] = true
end
|
#the_program_is_not_included ⇒ Object
#
the_program_is_not_included
#
285
286
287
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 285
def the_program_is_not_included
@internal_hash[:is_the_program_included] = false
end
|
#toggle_the_state(i = load_what?
) ⇒ Object
Also known as:
toggle
#
toggle_the_state (toggle tag)
#
353
354
355
356
357
358
359
360
361
362
363
364
365
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 353
def toggle_the_state(
i = load_what?
)
case i
when :expanded_cookbook
@internal_hash[:load_simple_or_expanded_cookbook_variant] = :simple_cookbook
else
@internal_hash[:load_simple_or_expanded_cookbook_variant] = :expanded_cookbook
end
end
|
#url1? ⇒ Boolean
406
407
408
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 406
def url1?
obtain(__method__.to_s.delete('?'))
end
|
#url2? ⇒ Boolean
435
436
437
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 435
def url2?
obtain(__method__.to_s.delete('?'))
end
|
#url3? ⇒ Boolean
924
925
926
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 924
def url3?
obtain(__method__.to_s.delete('?'))
end
|
#url4? ⇒ Boolean
931
932
933
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 931
def url4?
obtain(__method__.to_s.delete('?'))
end
|
#url5? ⇒ Boolean
938
939
940
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 938
def url5?
obtain(__method__.to_s.delete('?'))
end
|
#use_autoconf? ⇒ Boolean
771
772
773
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 771
def use_autoconf?
obtain(__method__.to_s.delete('?'))
end
|
#use_autogen? ⇒ Boolean
519
520
521
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 519
def use_autogen?
obtain(__method__.to_s.delete('?'))
end
|
#use_build_directory? ⇒ Boolean
463
464
465
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 463
def use_build_directory?
obtain(__method__.to_s.delete('?'))
end
|
#use_glib_schema? ⇒ Boolean
980
981
982
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 980
def use_glib_schema?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_build_directory? ⇒ Boolean
#
use_this_build_directory?
#
778
779
780
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 778
def use_this_build_directory?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_build_system? ⇒ Boolean
Also known as:
use_which_build_system?
#
use_this_build_system?
#
812
813
814
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 812
def use_this_build_system?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_make_command? ⇒ Boolean
#
use_this_make_command?
#
547
548
549
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 547
def use_this_make_command?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_make_install_command? ⇒ Boolean
#
use_this_make_install_command?
#
757
758
759
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 757
def use_this_make_install_command?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_program_name? ⇒ Boolean
#
use_this_program_name?
#
987
988
989
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 987
def use_this_program_name?
obtain(__method__.to_s.delete('?'))
end
|
#use_this_program_name_on_gobolinux? ⇒ Boolean
#
use_this_program_name_on_gobolinux?
#
533
534
535
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 533
def use_this_program_name_on_gobolinux?
obtain(__method__.to_s.delete('?'))
end
|
#wikipedia? ⇒ Boolean
750
751
752
|
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 750
def wikipedia?
obtain(__method__.to_s.delete('?'))
end
|