Sha256: 7e48ab223a3b0045693c5cb5b4760457ef8e1298fa094652e98c14f484698f9d
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
namespace :doc do desc 'Generates UML diagrams.' task :uml => :environment do puts 'Generating ...' options = {} options[:file] = ENV['OUTPUT'] if ENV['OUTPUT'] options[:writer] = case ENV['FORMAT'] when /plant(_)?(uml)?/ 'PlantumlWriter' when /use(_)?(uml)?/ 'UseWriter' else 'PlantumlWriter' end options[:type] = ENV['TYPE'] ? ENV['TYPE'] : 'class' file = Rails2use.extract! options puts "using #{options[:writer]}" puts "uml diagrams: #{options[:type]}" puts "output written to #{File.split(file)[0]}." end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails2use-0.0.35 | tasks/uml.rake |
rails2use-0.0.34 | tasks/uml.rake |
rails2use-0.0.33 | tasks/uml.rake |