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

Constants inherited from LeanPrototype

LeanPrototype::ALL_COLOUR_METHODS, LeanPrototype::ARRAY_KDE_KONSOLE_COLOURS_IN_USE, LeanPrototype::DAY_NAMES, LeanPrototype::NAMESPACE, LeanPrototype::SILENT_REDIRECTION

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LeanPrototype

#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

#

initialize

#


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
  # ======================================================================= #
  # === :do_not_run_yet
  # ======================================================================= #
  when :do_not_run_yet
    run_already = false
  end
  # ======================================================================= #
  # === Handle blocks given to this class next
  # ======================================================================= #
  if block_given?
    yielded = yield
    case yielded
    # ===================================================================== #
    # === :do_not_run_yet
    # ===================================================================== #
    when :do_not_run_yet
      run_already = false
    # ===================================================================== #
    # === :simple
    # ===================================================================== #
    when :simple,
         :simple_cookbook
      set_load_what(:simple_cookbook)
    # ===================================================================== #
    # === :use_expanded_dataset
    #
    # This variant is significantly faster than the :simple variant.
    # ===================================================================== #
    when :use_expanded_dataset,
         :use_the_expanded_dataset,
         :fast,
         :complex
      set_complex
    # ===================================================================== #
    # === :be_quiet_if_the_file_was_not_found
    # ===================================================================== #
    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?

#

Returns:

  • (Boolean)


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?

#

apply_patch?

#

Returns:

  • (Boolean)


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

#

archive_size?

#

Returns:

  • (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

#

archive_type?

#

Returns:

  • (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
#
#

Returns:

  • (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

#

base_dir?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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

#

binaries?

#

Returns:

  • (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?

#

blfs?

#

Returns:

  • (Boolean)


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

#

build_static?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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

#cmake_configure_options?Boolean

#

cmake_configure_options?

#

Returns:

  • (Boolean)


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

#configure_base_dir?Boolean

#

configure_base_dir?

#

Returns:

  • (Boolean)


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

#configure_command_to_use?Boolean

#

configure_command_to_use?

#

Returns:

  • (Boolean)


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

#configure_options?Boolean

#

configure_options?

#

Returns:

  • (Boolean)


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

#configure_options_explained?Boolean

#

configure_options_explained?

#

Returns:

  • (Boolean)


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

#

copy_source?

#

Returns:

  • (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.

#

Returns:

  • (Boolean)


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

#

description?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


306
307
308
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 306

def directory_expanded_cookbooks?
  DIRECTORY_EXPANDED_COOKBOOKS
end

#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')
  # action(:expand_cookbooks, target) # This would lead to a loop.
  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

#

do_not_download?

#

Returns:

  • (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

#
#

Returns:

  • (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_fileObject 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

#

echo_yes?

#

Returns:

  • (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

#

enable_shared?

#

Returns:

  • (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

#

enable_static?

#

Returns:

  • (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

#extra_information?Boolean

#

extra_information?

#

Returns:

  • (Boolean)


378
379
380
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 378

def extra_information?
  obtain(__method__.to_s.delete('?'))
end

#extract_to?Boolean

#

extract_to?

#

Returns:

  • (Boolean)


1015
1016
1017
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1015

def extract_to?
  obtain(__method__.to_s.delete('?'))
end

#find(for_this_program = search_for_this_program? ) ⇒ Object Also known as: try_to_find

#

find (find tag)

#


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

#

flatpak_url?

#

Returns:

  • (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

#

gir_files?

#

Returns:

  • (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

#

git_url?

#

Returns:

  • (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

#

github?

#

Returns:

  • (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.

#

Returns:

  • (Boolean)


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.

#

Returns:

  • (Boolean)


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

#

has_to_be_compiled?

#

Returns:

  • (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

#headers?Boolean

#

headers?

#

Returns:

  • (Boolean)


484
485
486
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 484

def headers?
  obtain(__method__.to_s.delete('?'))
end

#homepage?Boolean

#

homepage?

#

Returns:

  • (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

#

installation_steps?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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

#keep_extracted?Boolean

#

keep_extracted?

#

Returns:

  • (Boolean)


687
688
689
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 687

def keep_extracted?
  obtain(__method__.to_s.delete('?'))
end

#last_update?Boolean

#

last_update?

#

Returns:

  • (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

#

libexec?

#

Returns:

  • (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

#

libraries?

#

Returns:

  • (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

#

licence?

#

Returns:

  • (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
  # ======================================================================= #
  # End early here if the program is not included.
  # ======================================================================= #
  return unless ::RBT.is_this_program_included?(for_this_program)
  original_name = for_this_program.dup
  case load_what?
  # ======================================================================= #
  # === :simple_cookbook
  #
  # This refers to the unsanitized cookbook-dataset.
  # ======================================================================= #
  when :simple_cookbook,
       :default,
       :simple
    _ = RBT.cookbook_directory?+
        for_this_program.to_s
  # ======================================================================= #
  # === :expanded_cookbook
  #
  # This is also known as :complex.
  # ======================================================================= #
  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(_) # Always try as absolute path.
  # ======================================================================= #
  # Since as of January 2024, if the file does NOT exist, and we are
  # on a roebe-system, we will automatically generate a new .yml file.
  # In February 2024 it was noticed that this can lead to an infinite
  # loop, so the code was modified to no longer have this issue.
  # ======================================================================= #
  if !File.exist?(_) and shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file?
    # ===================================================================== #
    # Autogenerate it anew in this case:
    # ===================================================================== #
    do_autogenerate_a_new_expanded_cookbook_file_for(_)
  end
  # ======================================================================= #
  # The file exists, so we continue here.
  # ======================================================================= #
  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
    # ===================================================================== #
    # Next, load the yaml file.
    # ===================================================================== #
    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 # Sync it down one level in this case.
      !@internal_hash[:dataset_from_the_yaml_file].has_value?(original_name)
      # =================================================================== #
      # Note that this will fail for "sed" because it may have an entry
      # called sed. :D
      # This explains the above ! check in use.
      # =================================================================== #
      @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] # Always return the dataset as-is.
end

#load_what?Boolean Also known as: mode?

#

load_what?

#

Returns:

  • (Boolean)


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

#

localstatedir?

#

Returns:

  • (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

#

m4_files?

#

Returns:

  • (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

#

maintainer?

#

Returns:

  • (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

#

manual_steps?

#

Returns:

  • (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

#may_we_modify_the_configure_options?Boolean

#

may_we_modify_the_configure_options?

#

Returns:

  • (Boolean)


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

#

md5sum?

#

Returns:

  • (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
#

menu (menu tag)

#


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 menu(
    i = return_hyphened_commandline_arguments
  )
  if i.is_a? Array
    i.each {|entry| menu(entry) }
  else
    case i
    # ===================================================================== #
    # === rawcookbook matedesktop --do-not-autogenerate
    # ===================================================================== #
    when /^-?-?do(-|_)?not(-|_)?autogenerate$/i
      do_not_autogenerate
    # ===================================================================== #
    # === rawcookbook gxine --simple
    # ===================================================================== #
    when /^-?-?simple$/i
      set_simple
    # ===================================================================== #
    # === rawcookbook gxine --complex
    # ===================================================================== #
    when /^-?-?complex$/i,
         /^-?-?expanded$/i
      set_complex
    # ===================================================================== #
    # === rawcookbook gxine --help 
    # ===================================================================== #
    when /help/
      show_help
      exit
    end
  end
end

#meson_configure_options?Boolean

#

meson_configure_options?

#

Returns:

  • (Boolean)


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

#

mirror?

#

Returns:

  • (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

#

modify_the_makefile?

#

Returns:

  • (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

#

obtain (obtain tag)

#


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 # Get our key, as a String.
    # ===================================================================== #
    # First, we try to query the main Hash via a string-key.
    # ===================================================================== #
    if dataset.has_key? string_key
      result = dataset[i]
    # ===================================================================== #
    # Next we try the same key, but as a Symbol.
    # ===================================================================== #
    elsif dataset.has_key? string_key.to_sym
      result = dataset[string_key.to_sym]
    else
      # e 'The key is not available: '+i.to_s
    end
    return result
  end
end

#optional_start_message?Boolean

#

optional_start_message?

#

Returns:

  • (Boolean)


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

#

override?

#

Returns:

  • (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

#

parameters_to_make?

#

Returns:

  • (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

#

pkgconfig_files?

#

Returns:

  • (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

#

postinstall?

#

Returns:

  • (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

#pre_configure_steps?Boolean

#

pre_configure_steps?

#

Returns:

  • (Boolean)


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

#

pre_make_commands?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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

#

prefix?

#

Returns:

  • (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

#

preinstall?

#

Returns:

  • (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_datasetObject

#

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
  # pp the dataset: pp _.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 headers? and !headers?.empty?
    e Colours::HtmlColoursMethods.steelblue('headers entry is: '.ljust(38))+
      Colours::HtmlColoursMethods.lightgreen(headers?.to_s[0 .. 40]+'[...]')
  end
  # ======================================================================= #
  # === prefix
  # ======================================================================= #
  e Colours::HtmlColoursMethods.steelblue('prefix: '.ljust(38))+
    Colours::HtmlColoursMethods.lightgreen(prefix?.to_s)
  # ======================================================================= #
  # === use build directory
  # ======================================================================= #
  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(symlink_headers?.to_s)
  # ======================================================================= #
  # === configure_command_to_use
  # ======================================================================= #
  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)
  # ======================================================================= #
  # === configure_options
  # ======================================================================= #
  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
  extra_information = extra_information?
  # ======================================================================= #
  # === extra_information
  # ======================================================================= #
  if extra_information and !extra_information.empty?
    content = extra_information.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
  # ======================================================================= #
  # === meson_configure_options
  # ======================================================================= #
  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

#

program_name?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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

#

program_path?

#

Returns:

  • (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

#

program_version?

#

Returns:

  • (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

#

rating?

#

Returns:

  • (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
#
#

Returns:

  • (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?

#

required_deps_on?

#

Returns:

  • (Boolean)


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

#resetObject

#

reset (reset tag)

#


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_variablesObject 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
  # ======================================================================= #
  # === :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] = false
  if is_on_roebe?
    @internal_hash[:shall_we_try_to_autogenerate_the_dataset_for_an_expanded_yaml_file] = true
  end
  # ======================================================================= #
  # === :is_the_program_included
  #
  # This variable will tell us whether the program is included or
  # whether it is not included. By default it is assumed that
  # the program is NOT included, hence the false value.
  # ======================================================================= #
  @internal_hash[:is_the_program_included] = false
  # ======================================================================= #
  # === :dataset_from_the_yaml_file
  #
  # We will store all data into the following variable. The data
  # comes from a .yml file typically.
  #
  # Initialize the variable to an empty Hash.
  # ======================================================================= #
  @internal_hash[:dataset_from_the_yaml_file] = {}
  # ======================================================================= #
  # === :be_quiet_if_the_file_was_not_found
  # ======================================================================= #
  @internal_hash[:be_quiet_if_the_file_was_not_found] = false
  # ======================================================================= #
  # === :absolute_path_to_the_cookbook_file
  #
  # This variable will store from which location the dataset was read.
  # ======================================================================= #
  @internal_hash[:absolute_path_to_the_cookbook_file] = nil
end

#reset_the_main_hashObject Also known as: clear, unfreeze

#

reset_the_main_hash

#


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?

#

Returns:

  • (Boolean)


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

#runObject

#

run (run tag)

#


1361
1362
1363
1364
1365
1366
1367
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 1361

def run
  menu(
    return_hyphened_commandline_arguments
  )
  set_search_for_this_program(:first_argument) # Should come after menu().
  load_up_the_dataset
end

#run_configure?Boolean

#

run_configure?

#

Returns:

  • (Boolean)


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

#

run_ldconfig?

#

Returns:

  • (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

#

run_make?

#

Returns:

  • (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

#

run_make_check?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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

#

sed?

#

Returns:

  • (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_complexObject

#

set_complex

#


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

#

set_env_variables?

#

Returns:

  • (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
  # ======================================================================= #
  # === :default
  #
  # This means to obtain the first argument given to this class.
  # ======================================================================= #
  when :default,
       :first_argument
    i = first_argument?
  end
  @internal_hash[:search_for_this_program] = i
end

#set_simpleObject

#

set_simple

#


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_variantObject

#

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
  # ======================================================================= #
  # === :load_simple_or_expanded_cookbook_variant
  #
  # The next variable will determine whether we will load from the
  # expanded cookbook-dataset or from a raw, simple .yml file. The
  # latter may contain less data. Ideally we should load from the
  # expanded_cookbook, if possible and available, as it is faster.
  #
  # The two allowed states for this variable are:
  #
  #   :simple_cookbook
  #   :expanded_cookbook
  #
  # ======================================================================= #
  # @internal_hash[:load_simple_or_expanded_cookbook_variant] = :simple_cookbook
  @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?

#

Returns:

  • (Boolean)


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?

#

short_description?

#

Returns:

  • (Boolean)


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

#

short_name?

#

Returns:

  • (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_helpObject

#

show_help (help tag)

#


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

#

sub_dir?

#

Returns:

  • (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

#

svn_url?

#

Returns:

  • (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
#
#

Returns:

  • (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
#
#

Returns:

  • (Boolean)


652
653
654
# File 'lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb', line 652

def symlink_headers?
  obtain(__method__.to_s.delete('?'))
end
#
#

Returns:

  • (Boolean)


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

#tags?Boolean

#

tags?

#

Returns:

  • (Boolean)


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_includedObject

#

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_includedObject

#

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
  # ======================================================================= #
  # === :expanded_cookbook
  # ======================================================================= #
  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

#

url1?

#

Returns:

  • (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

#

url2?

#

Returns:

  • (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

#

url3?

#

Returns:

  • (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

#

url4?

#

Returns:

  • (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

#

url5?

#

Returns:

  • (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

#

use_autoconf?

#

Returns:

  • (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

#

use_autogen?

#

Returns:

  • (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

#

use_build_directory?

#

Returns:

  • (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

#

use_glib_schema?

#

Returns:

  • (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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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?

#

Returns:

  • (Boolean)


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

#

wikipedia?

#

Returns:

  • (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