Passing Arguments to TOSBack

Over time, I’ve added some features to TOSBack that you access by passing arguments to the script. The quickest way to test out new rules/XPath info is to run the script like this:

rubycode$ ruby tosback.rb ../rules/abercrombie.com.xml

Instead of writing the policy to file, it will just print it on the screen for verification. If everything looks good, just run:

rubycode$ ruby tosback.rb ../rules/abercrombie.com.xml -w

to write out the file and update the crawl folder. Since I think I’ve added XPath data to about 400 rule files and tested them all, this has saved me a lot of time.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>