watson-ruby
watson-ruby copied to clipboard
Add current file (watson) to avoid accidentally printing app tags [lib/watson/config.rb]
filename : lib/watson/config.rb line # : 231 tag : todo md5 : 04702c2887bb3056b7598de144c516a9
# [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 = ""
# Keep index to print what line we are on