watson-ruby
watson-ruby copied to clipboard
Add conditional to @rc_file such that if passed by -f we accept it [lib/watson/config.rb]
filename : lib/watson/config.rb line # : 230 tag : todo md5 : f0cf8a1a187180dc2bd40efe4120cebc
# [todo] - Add conditional to @rc_file such that if passed by -f we accept it
# [todo] - Add current file (watson) to avoid accidentally printing app tags
@ignore_list.push(".")
@ignore_list.push("..")
@ignore_list.push("*.swp")
@ignore_list.push(@rc_file)
@ignore_list.push(@tmp_file)
# Open and read rc
# [review] - Not sure if explicit file close is required here
_rc = File.open(@rc_file, 'r').read
debug_print "\n\n"
# Create temp section var to keep track of what we are populating in config
_section = ""