Class: RBT::Action::Cookbooks::Blfs

Inherits:
RBT::Action show all
Defined in:
lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb

Overview

RBT::Action::Cookbooks::Blfs

Constant Summary

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?, #directory_expanded_cookbooks?, #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, #extract_to?, #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) ⇒ Blfs

#

initialize

#


36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 36

def initialize(
    i           = ARGV,
    run_already = true,
    &block
  )
  register_sigint
  reset # reset() must come before the other methods.
  set_commandline_arguments(i)
  # ======================================================================= #
  # === Handle blocks next
  # ======================================================================= #
  if block_given?
    yielded = yield
    case yielded
    # ===================================================================== #
    # === :be_quiet_and_no_colours_and_do_not_tamper_with_the_xorg_buffer_and_do_not_open_in_the_browser
    # ===================================================================== #
    when :be_quiet_and_no_colours_and_do_not_tamper_with_the_xorg_buffer_and_do_not_open_in_the_browser
      set_do_not_be_verbose
      do_not_open_via_the_browser
      do_not_show_opnn
      disable_colours
      do_not_report_the_result
      do_not_make_use_of_the_xorg_buffer
    # ===================================================================== #
    # === :no_colours_be_quiet
    # ===================================================================== #
    when :no_colours_be_quiet
      disable_colours
      set_do_not_be_verbose
      do_not_show_opnn
      do_not_report_the_result
    # ===================================================================== #
    # === :be_quiet_and_no_colours_and_do_not_tamper_with_the_xorg_buffer
    # ===================================================================== #
    when :be_quiet_and_no_colours_and_do_not_tamper_with_the_xorg_buffer
      set_do_not_be_verbose
      do_not_show_opnn
      disable_colours
      do_not_report_the_result
      do_not_make_use_of_the_xorg_buffer
    # ===================================================================== #
    # === :be_quiet_and_do_not_tamper_with_the_xorg_buffer
    # ===================================================================== #
    when :be_quiet_and_do_not_tamper_with_the_xorg_buffer
      set_do_not_be_verbose
      do_not_show_opnn
      do_not_report_the_result
      do_not_make_use_of_the_xorg_buffer
    # ===================================================================== #
    # === :be_quiet
    # ===================================================================== #
    when :be_quiet
      set_be_quiet
    # ===================================================================== #
    # === :no_colours
    # ===================================================================== #
    when :no_colours,
         :disable_colours
      disable_colours
    end
  end
  run if run_already
end

Class Method Details

.[](i = ARGV) ⇒ Object

#

RBT::Action::Cookbooks::Blfs[]

#


526
527
528
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 526

def self.[](i = ARGV)
  new(i)
end

Instance Method Details

#all_blfs_entriesObject Also known as: all_programs_with_a_registered_BLFS_entry

#

all_blfs_entries

#


432
433
434
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 432

def all_blfs_entries
  RBT.return_all_blfs_entries
end

#also_assign_the_xorg_buffer?Boolean

#

also_assign_the_xorg_buffer?

#

Returns:

  • (Boolean)


190
191
192
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 190

def also_assign_the_xorg_buffer?
  @internal_hash[:also_assign_the_xorg_buffer]
end

#check_blfs_entry_for(this_program) ⇒ Object

#

check_blfs_entry_for (check tag)

This method is normally called from within do_work_on_the_designated_programs().

#


385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 385

def check_blfs_entry_for(
    this_program
  )
  set_blfs_homepage(nil) # Reset it here.
  set_program_name(nil)  # Reset this as well.
  _ = raw_cookbook?
  this_program = this_program.to_s.dup
  this_program.delete!('-') if this_program.include? '-'
  set_program_name(this_program) # Always keep a reference here.
  _result_of_the_search = _.try_to_find(which_program?) # This variable will normally be a Hash.
  if _.has_non_empty_BLFS_entry?
    set_blfs_homepage(_.blfs_homepage?)
    homepage = homepage? # Get a reference, for easier working with this variable.
    # report_the_program(this_program)
    if report_the_result?
      report_this_BLFS_homepage(homepage)
    end
    if homepage and !homepage.empty?
      if shall_we_open_via_the_browser? and !in_batch_mode?
        # ================================================================= #
        # Since as of January 2023, the homepage will be opened on my
        # home system whenever we report the BLFS-homepage. This will,
        # however had, NOT be the case when we run in batch-mode.
        # ================================================================= #
        open_in_browser(homepage)
      end
    end
  else
    report_that_no_blfs_entry_exists_for_the_program(this_program)
  end
  _.reset_the_internal_state # And reset RawCookbook again.
end

#do_not_make_use_of_the_xorg_bufferObject

#

do_not_make_use_of_the_xorg_buffer

#


174
175
176
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 174

def do_not_make_use_of_the_xorg_buffer
  @internal_hash[:also_assign_the_xorg_buffer] = false
end

#do_not_open_in_the_browserObject Also known as: do_not_open_via_the_browser

#

do_not_open_in_the_browser

#


296
297
298
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 296

def do_not_open_in_the_browser
  @internal_hash[:open_in_browser] = false
end

#do_not_report_the_resultObject

#

do_not_report_the_result

#


233
234
235
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 233

def do_not_report_the_result
  @internal_hash[:report_the_result] = false
end

#do_not_show_opnnObject

#

do_not_show_opnn

#


212
213
214
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 212

def do_not_show_opnn
  disable_opn
end

#do_report_the_resultObject

#

do_report_the_result

#


226
227
228
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 226

def do_report_the_result
  @internal_hash[:report_the_result] = true
end

#do_run_in_batch_modeObject Also known as: run_in_batch_mode

#

do_run_in_batch_mode

#


289
290
291
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 289

def do_run_in_batch_mode
  @internal_hash[:run_in_batch_mode] = true
end

#do_work_on_the_designated_programs(i = work_on_these_programs? ) ⇒ Object

#

do_work_on_the_designated_programs

#


421
422
423
424
425
426
427
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 421

def do_work_on_the_designated_programs(
    i = work_on_these_programs?
  )
  i.each {|this_program|
    check_blfs_entry_for(this_program)
  }
end

#homepage?Boolean Also known as: blfs_homepage?, homepage, remote_url?, result_as_string?, result?

#

homepage?

#

Returns:

  • (Boolean)


240
241
242
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 240

def homepage?
  @internal_hash[:blfs_homepage] # Store the homepage here.
end
#

menu (menu tag)

#


439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 439

def menu(
    i = hyphened_arguments?
  )
  if i.is_a? Array
    i.each {|entry| menu(entry) }
  else
    case i # (case tag)
    # ===================================================================== #
    # === Operate in batch-mode                                 (batch tag)
    #
    # Invocation example:
    #
    #   blfs --batch
    #
    # ===================================================================== #
    when /^-?-?batch/i,
         /^-?-?everything/i
      opne "#{rev}#{steelblue('Running in batch-mode, as instructed.')}"
      do_run_in_batch_mode
    end
  end
end

#open_in_browser?Boolean Also known as: shall_we_open_via_the_browser?

#

open_in_browser?

#

Returns:

  • (Boolean)


258
259
260
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 258

def open_in_browser?
  @internal_hash[:open_in_browser]
end

#program_name?Boolean Also known as: program?, which_program?

#

program_name?

This method will return the program we are searching for in this class.

In other words, this will be roughly equal to the input the user provided to this class, although a bit sanitized (for instance, a trailing ‘/’ is chopped off).

#

Returns:

  • (Boolean)


204
205
206
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 204

def program_name?
  @internal_hash[:program_name]
end

#raw_cookbook?Boolean

#

raw_cookbook?

#

Returns:

  • (Boolean)


251
252
253
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 251

def raw_cookbook?
  @internal_hash[:raw_cookbook]
end

#report_that_no_blfs_entry_exists_for_the_program(i = program_name?, , url2 = url2? ) ⇒ Object Also known as: report_no_entry_was_found_for_this_program

#

report_that_no_blfs_entry_exists_for_the_program

#


329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 329

def report_that_no_blfs_entry_exists_for_the_program(
    i    = program_name?,
    url2 = url2?
  )
  if be_verbose?
    if i and !i.empty? and !run_in_batch_mode?
      opne "#{rev}No #{teal('BLFS entry')} #{rev}is available "\
           "for `#{slategray(File.basename(i).delete_suffix('.yml'))}#{rev}`."
      if url2
        e
        opne "However had, as it may often be the case that you would like"
        opne "#{rev}to see any useful URL, the main download page "\
             "(#{steelblue('url2')}#{rev}) will be"
        opne "shown next:"
        e
        e "  #{steelblue(url2)}"
        e
      end
    end
  end
end

#report_the_program(this_program = program_name? ) ⇒ Object

#

report_the_program

#


303
304
305
306
307
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 303

def report_the_program(
    this_program = program_name?
  )
  opne lightblue(this_program)
end

#report_the_result?Boolean

#

report_the_result?

#

Returns:

  • (Boolean)


219
220
221
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 219

def report_the_result?
  @internal_hash[:report_the_result]
end

#report_this_BLFS_homepage(i = blfs_homepage?, , also_assign_to_the_xorg_buffer = also_assign_the_xorg_buffer? ) ⇒ Object Also known as: report_homepage

#

report_this_BLFS_homepage

#


354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 354

def report_this_BLFS_homepage(
    i                              = blfs_homepage?, # Defaults to @internal_hash[:blfs_homepage] as argument.
    also_assign_to_the_xorg_buffer = also_assign_the_xorg_buffer?
  )
  i = i.first if i.is_a? Array
  if be_verbose? and report_the_result?
    if run_in_batch_mode?
      e "#{lightgreen(program_name?)} #{orange(right_arrow?)} #{steelblue(i)}"
    else
      opnn { :no_trailing }
      e
      e
      e "#{rev}Opening"
      e
      e "  #{sfancy(homepage)}#{rev}"
      e
      e "#{rev}in the browser next."
    end
  end
  e
  if also_assign_to_the_xorg_buffer
    set_xorg_buffer(i)
  end
end

#resetObject

#

reset (reset tag)

#


104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 104

def reset
  super()
  infer_the_namespace
  # ======================================================================= #
  # === :report_the_result
  # ======================================================================= #
  do_report_the_result
  # ======================================================================= #
  # === :work_on_these_programs
  #
  # This variable will be an Array of programs that will be
  # compiled/installed.
  # ======================================================================= #
  @internal_hash[:work_on_these_programs] = []
  # ======================================================================= #
  # === :program_name
  #
  # This variable must be nil initially.
  # ======================================================================= #
  @internal_hash[:program_name] = nil
  # ======================================================================= #
  # === :also_assign_the_xorg_buffer
  # ======================================================================= #
  @internal_hash[:also_assign_the_xorg_buffer] = true
  # ======================================================================= #
  # === :open_in_browser
  #
  # If this variable is true then this class will attempt to open 
  # ======================================================================= #
  @internal_hash[:open_in_browser] = true
  # ======================================================================= #
  # === :blfs_homepage
  #
  # This variable will keep a reference towards the BLFS homepage of
  # the corresponding program at hand.
  # ======================================================================= #
  @internal_hash[:blfs_homepage] = nil
  # ======================================================================= #
  # === :raw_cookbook
  #
  # We need an instance of raw-cookbooks, in order to find not only
  # the BLFS entry, but also make use of url1 and url2.
  # ======================================================================= #
  @internal_hash[:raw_cookbook] = action(:raw_cookbook) { :be_quiet_if_the_file_was_not_found }
  # ======================================================================= #
  # === :run_in_batch_mode
  #
  # If this is true then we will report all entries registered in the
  # RBT project.
  # ======================================================================= #
  @internal_hash[:run_in_batch_mode] = false
end

#runObject

#

run (run tag)

#


501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 501

def run
  # ======================================================================= #
  # By default all non-hyphened commandline arguments will constitute
  # the array of programs this class will operate on. Note that
  # --batch will overrule this anyway, if provided on the commandline.
  # ======================================================================= #
  _ = non_hyphened_arguments?
  # ======================================================================= #
  # Next we enter menu():
  # ======================================================================= #
  menu
  if do_we_run_in_batchmode?
    _ = all_programs_with_a_registered_BLFS_entry
  end
  if _.empty? and !is_in_batchmode?
    opne "#{rev}Please supply at the least one argument to this class."
  else
    set_work_on_these_programs(_)
    do_work_on_the_designated_programs
  end
end

#run_in_batch_mode?Boolean Also known as: in_batch_mode?, is_in_batchmode?, do_we_run_in_batchmode?

#

run_in_batch_mode?

#

Returns:

  • (Boolean)


181
182
183
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 181

def run_in_batch_mode?
  @internal_hash[:run_in_batch_mode]
end

#sanitize_this_program_name(i) ⇒ Object

#

sanitize_this_program_name

This method will sanitize the program-name a little bit.

#


162
163
164
165
166
167
168
169
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 162

def sanitize_this_program_name(i)
  i = i.first if i.is_a? Array
  i = i.dup if i.frozen?
  i = i.to_s.dup.downcase # Downcase the input since as of September 2017.
  i = i[0, i.index('.')] if i.include? '.'
  i.chop! if i.end_with? '/'
  return i
end

#set_homepage(i) ⇒ Object Also known as: set_blfs_homepage

#

set_homepage

#


312
313
314
315
316
317
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 312

def set_homepage(i)
  if i and i.is_a? Array
    i = i.first
  end
  @internal_hash[:blfs_homepage] = i
end

#set_program_name(i = first_argument? ) ⇒ Object Also known as: set_program, set_input

#

set_program_name

We seek this program through the method here.

The method will also handle aliases since as of June 2020.

#


469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 469

def set_program_name(
    i = first_argument?
  )
  if i
    i = sanitize_this_program_name(i)
    if RBT.is_included?(i, false)
      # ===================================================================== #
      # In this case all is fine. We'll assign the program-name past this
      # clause.
      # ===================================================================== #
    elsif RBT.is_included?(i, true)
      old_name = i.dup
      # ===================================================================== #
      # === Handle aliases next
      #
      # It is an alias, so find the real name.
      # ===================================================================== #
      i = RBT.find_cookbook_alias_for(i)
      opne "#{rev}This name (#{forestgreen(old_name)}"\
           "#{rev}) was not found, but a replacement name ("\
           "#{steelblue(i)}#{rev})"
      opne "#{rev}was found and will subsequently be used instead."
      e
    end
  end
  @internal_hash[:program_name] = i
end

#set_work_on_these_programs(i = non_hyphened_arguments? ) ⇒ Object Also known as: set_seek_this_program, set_seek_these_programs, set_seek_this_program_name, set_array_work_on_these_entries

#

set_work_on_these_programs

This will actually assign to an Array. The method is not allowed to modify the content of this Array.

#


268
269
270
271
272
273
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 268

def set_work_on_these_programs(
    i = non_hyphened_arguments?
  )
  i = [i].flatten.compact
  @internal_hash[:work_on_these_programs] = i
end

#url2?Boolean

#

url2?

#

Returns:

  • (Boolean)


322
323
324
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 322

def url2?
  return raw_cookbook?.url2?
end

#work_on_these_programs?Boolean Also known as: work_on_which_entries?, array_work_on_these_entries?

#

work_on_these_programs?

#

Returns:

  • (Boolean)


281
282
283
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 281

def work_on_these_programs?
  @internal_hash[:work_on_these_programs]
end