class RBT::ConvertToTraditional
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- 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) opnn; e "Now #{springgreen(converting)} `#{sfile(i)}`." opnn; e "to a FHS package (into --prefix #{prefix?})." copy_recursively(i, prefix?, true) # true for "be verbose". opnn; e 'Done!' else opnn; e 'Sorry, we can not continue. The directory at:' opnn; e sdir(i) opnn; e 'does not seem to exist.' end end
prefix?()
click to toggle source
reset()
click to toggle source
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