rbt 0.16.14 → 0.16.15

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rbt might be problematic. Click here for more details.

@@ -12,6 +12,55 @@ class Action
12
12
 
13
13
  class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
14
14
 
15
+ # ========================================================================== #
16
+ # === cookbook_dataset_manual_steps?
17
+ # ========================================================================== #
18
+ def cookbook_dataset_manual_steps?
19
+ cookbook_dataset?.manual_steps?
20
+ end
21
+
22
+ # ========================================================================== #
23
+ # === extract_to_this_directory?
24
+ #
25
+ # This query-method tells us where we will extract (our archive) to.
26
+ #
27
+ # The temp-directory is initially the same as RBT.rbt_log_directory?.
28
+ # ========================================================================== #
29
+ def extract_to_this_directory?
30
+ _ = @internal_hash[:extract_to_this_directory]
31
+ # ======================================================================== #
32
+ # Allow the user to overrule this value.
33
+ # ======================================================================== #
34
+ if extract_to_this_directory_as_specified_by_the_user?
35
+ _ = extract_to_this_directory_as_specified_by_the_user?
36
+ end
37
+ return _
38
+ end; alias extract_to_which_directory? extract_to_this_directory? # === extract_to_which_directory?
39
+ alias extract_to? extract_to_this_directory? # === extract_to?
40
+ alias extract_where_to? extract_to_this_directory? # === extract_where_to?
41
+ alias extracted_directory? extract_to_this_directory? # === extracted_directory?
42
+ alias extracted_dir? extract_to_this_directory? # === extracted_dir?
43
+ alias dir? extract_to_this_directory? # === dir?
44
+ alias extract_to_this_dir? extract_to_this_directory? # === extract_to_this_dir?
45
+ alias extracted_path? extract_to_this_directory? # === extracted_path?
46
+ alias extracted_towards? extract_to_this_directory? # === extracted_towards?
47
+
48
+ # ========================================================================== #
49
+ # === extract_to_this_directory_as_specified_by_the_user?
50
+ # ========================================================================== #
51
+ def extract_to_this_directory_as_specified_by_the_user?
52
+ @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
53
+ end
54
+
55
+ # ========================================================================== #
56
+ # === show_flexbox?
57
+ # ========================================================================== #
58
+ def show_flexbox?
59
+ @internal_hash[:show_the_flexbox]
60
+ end; alias show_the_flexbox? show_flexbox? # === show_the_flexbox?
61
+ alias show_the_infobox? show_flexbox? # === show_the_infobox?
62
+ alias show_infobox? show_flexbox? # === show_infobox?
63
+
15
64
  # ========================================================================== #
16
65
  # === will_the_extracted_source_archive_be_removed?
17
66
  #
@@ -31,8 +80,14 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
31
80
  result = !user_variable
32
81
  end
33
82
  return result
34
- end; alias keep_the_extracted_archive? will_the_extracted_source_archive_be_removed? # === keep_the_extracted_archive?
35
- alias keep_extracted_archive? will_the_extracted_source_archive_be_removed? # === keep_extracted_archive?
83
+ end
84
+
85
+ # ========================================================================== #
86
+ # === keep_the_extracted_archive?
87
+ # ========================================================================== #
88
+ def keep_the_extracted_archive?
89
+ !will_the_extracted_source_archive_be_removed?
90
+ end; alias keep_extracted_archive? keep_the_extracted_archive? # === keep_extracted_archive?
36
91
 
37
92
  # ========================================================================== #
38
93
  # === retain_the_extracted_source_archive?
@@ -89,6 +144,24 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
89
144
  cookbooks_dataset?.send(__method__)
90
145
  end
91
146
 
147
+ # ========================================================================== #
148
+ # === use_autoconf?
149
+ #
150
+ # This method determines as to whether we will use autoconf or whether
151
+ # we will not. By default the value of @internal_hash[:use_autoconf]
152
+ # is nil. If a user modifies this value from the commandline, to
153
+ # either true or false, then we will use that value; otherwise we
154
+ # will use the value defined in the cookbook-dataset for this
155
+ # particular program at hand.
156
+ # ========================================================================== #
157
+ def use_autoconf?
158
+ _ = cookbook_use_autoconf? # ← This is the default.
159
+ unless @internal_hash[:use_autoconf].nil?
160
+ _ = @internal_hash[:use_autoconf]
161
+ end
162
+ return _
163
+ end
164
+
92
165
  # ========================================================================= #
93
166
  # === is_this_a_registered_binary?
94
167
  # ========================================================================= #
@@ -278,9 +351,9 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
278
351
  # ========================================================================== #
279
352
  def program_version?
280
353
  _ = cookbook_dataset_program_version? # ← Default value.
281
- # ======================================================================= #
354
+ # ======================================================================== #
282
355
  # The user can override it.
283
- # ======================================================================= #
356
+ # ======================================================================== #
284
357
  if @internal_hash[:use_this_specific_program_version]
285
358
  _ = @internal_hash[:use_this_specific_program_version]
286
359
  end
@@ -1081,9 +1154,9 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
1081
1154
  result = @internal_hash[:an_error_has_occurred]
1082
1155
  ignore_errors = ignore_errors?
1083
1156
  case ignore_errors
1084
- # ======================================================================= #
1157
+ # ======================================================================== #
1085
1158
  # === :infer
1086
- # ======================================================================= #
1159
+ # ======================================================================== #
1087
1160
  when :infer
1088
1161
  ignore_errors = cookbook_dataset_ignore_errors?
1089
1162
  end
@@ -1253,9 +1326,9 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
1253
1326
  i = compile_which_program?
1254
1327
  )
1255
1328
  dependencies = required_dependencies_on?
1256
- # ======================================================================= #
1329
+ # ======================================================================== #
1257
1330
  # Simplify the dependencies next.
1258
- # ======================================================================= #
1331
+ # ======================================================================== #
1259
1332
  dependencies.map! {|entry|
1260
1333
  if entry.include?(' >') or entry.include?(' <')
1261
1334
  entry = entry.split(' ').first.strip
@@ -1394,10 +1467,10 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
1394
1467
  # === use_which_build_system?
1395
1468
  # ========================================================================== #
1396
1469
  def use_which_build_system?
1397
- # ======================================================================= #
1470
+ # ======================================================================== #
1398
1471
  # We default to the cookbook dataset when it comes to a specific
1399
1472
  # build system.
1400
- # ======================================================================= #
1473
+ # ======================================================================== #
1401
1474
  _ = cookbookset_dataset_use_which_build_system?
1402
1475
  unless @internal_hash[:use_this_build_system].nil?
1403
1476
  _ = @internal_hash[:use_this_build_system]