class RBT::ConvertToTraditional
Constants
- USE_THIS_TARGET_PREFIX
#¶ ↑
USE_THIS_TARGET_PREFIX
¶ ↑#¶ ↑
Public Class Methods
new( full_location_of_package_or_name = nil, run_already = true )
click to toggle source
Public Instance Methods
convert_to_fhs(i)
click to toggle source
#¶ ↑
convert_to_fhs
¶ ↑
This method will “convert” the package to a FHS install.
# ¶ ↑
# File lib/rbt/utility_scripts/convert_to_traditional.rb, line 83 def convert_to_fhs(i) i = i.dup if i.frozen? i << '/Current/' if File.exist?(i) opne "Now #{springgreen(converting)} `#{sfile(i)}`." opne "to a FHS package (into --prefix #{prefix?})." copy_recursively(i, prefix?, true) # true for "be verbose". opne 'Done!' else opne 'Sorry, we can not continue. The directory at:' opne sdir(i) opne 'does not seem to exist.' end end
prefix?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset¶ ↑
#¶ ↑
Calls superclass method
RBT::LeanPrototype#reset
# File lib/rbt/utility_scripts/convert_to_traditional.rb, line 40 def reset super() infer_the_namespace # ======================================================================= # # === @target_prefix_to_use # ======================================================================= # @target_prefix_to_use = USE_THIS_TARGET_PREFIX end
run()
click to toggle source
set_full_location_of_package_or_name(i)
click to toggle source
set_start_location( i = programs_directory? )
click to toggle source
#¶ ↑
set_start_location
¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/convert_to_traditional.rb, line 60 def set_start_location( i = programs_directory? ) if RBT.configuration?.capitalize_program_names # Whether to capitalize the directory. i << @full_location_of_package_or_name.capitalize else i << @full_location_of_package_or_name end @start_location = i end