class RBT::BinaryNameBelongsToWhichProgram
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
[](i = '')
click to toggle source
new( commandline_arguments = nil, run_already = true )
click to toggle source
Public Instance Methods
commandline_arguments?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/binary_name_belongs_to_which_program.rb, line 69 def run first = @commandline_arguments.first all_registered_binaries = RBT.hash_registered_binaries? if all_registered_binaries.has_key? first belongs_to = all_registered_binaries[first] opnn; e "The binary called `#{royalblue(first)}` belongs to the "\ "program `#{orange(belongs_to)}`." else opnn; e "The program called `#{royalblue(first)}` does not appear "\ "to be registered " opnn; e 'with any particular program.' end end