Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## auto open rdoc rcov with rake safari (Skiz)
- task :rcov do
- system 'osascript safari.as `pwd`/coverage/index.html' if PLATFORM['darwin']
- end
- task :rdoc do
- system 'osascript safari.as `pwd`/rdoc/index.html' if PLATFORM['darwin']
- end
- ## safari.as
- on run argv
- tell application "Safari" to reopen
- tell application "Safari" to activate document 1
- tell application "Safari" to set URL of document 1 to item 1 of argv
- tell application "Safari" to activate
- end run
Add Comment
Please, Sign In to add comment