Skip to content

Commit

Permalink
add rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendung committed Jul 5, 2008
1 parent 20c8934 commit 1d74614
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.svn
Empty file added Rakefile
Empty file.
Empty file added init.rb
Empty file.
18 changes: 0 additions & 18 deletions rake.gemspec

This file was deleted.

15 changes: 15 additions & 0 deletions tasks/diagrams.rake
@@ -0,0 +1,15 @@
namespace :doc do
namespace :diagram do
ADDITIONAL_OPTS = "-j -v --hide-magic"
RAILROAD = "./vendor/plugins/railroad/bin/railroad"
task :models do
sh "#{RAILROAD} -i -l -m -M #{ADDITIONAL_OPTS} | dot -Tsvg | sed 's/font-size:14.00/font-size:11.00/g' > doc/models.svg"
end

task :controllers do
sh "#{RAILROAD} -i -l -C -v | neato -Tsvg | sed 's/font-size:14.00/font-size:11.00/g' > doc/controllers.svg"
end
end

task :diagrams => %w(diagram:models diagram:controllers)
end

0 comments on commit 1d74614

Please sign in to comment.