Created
September 18, 2009 15:24
-
-
Save mynyml/189107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run me with: | |
# | |
# $ watchr docs.watchr.rb | |
def run_rdoc | |
system('rake --silent rdoc') | |
end | |
def run_yard | |
print "\nUpdating yardocs... " | |
system('rake --silent yardoc') | |
print "done.\n" | |
end | |
def document | |
run_rdoc | |
run_yard | |
end | |
watch( 'lib/.*\.rb' ) { document } | |
watch( 'README.rdoc' ) { document } | |
watch( 'TODO.txt' ) { document } | |
watch( 'LICENSE' ) { document } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment