Sha256: fd6343d6d8b00e54156f333d6ad4f730be9247eaa297b1d38801f88fe6cdd1e8
Contents?: true
Size: 1.57 KB
Versions: 3
Compression:
Stored size: 1.57 KB
Contents
#!/usr/bin/env ruby # RailRoady - RoR diagrams generator # http://github.com/preston/railroady # # RailRoady generates models and controllers diagrams in DOT language # for a Rails v3 application. # # Copyright 2007-2008 - Javier Smaldone (http://www.smaldone.com.ar) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Modification 2010 by Preston Lee. # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'railroady' APP_NAME = "railroady" APP_HUMAN_NAME = "RailRoady" # APP_VERSION = [RailRoady::VERSION::MAJOR, RailRoady::VERSION::MINOR, RailRoady::VERSION::PATCH] APP_VERSION = RailRoady::VERSION COPYRIGHT = "Copyright (C) 2007-2008 Javier Smaldone, 2009 Peter Hoeg, 2010 Preston Lee" options = OptionsStruct.new({:app_name => APP_NAME, :app_human_name => APP_HUMAN_NAME, :app_version =>APP_VERSION, :copyright =>COPYRIGHT}) options.parse ARGV # puts "OPTS!!!" # puts options old_dir = Dir.pwd Dir.chdir(options.root) if options.root != '' case options.command when 'models' diagram = ModelsDiagram.new options when 'controllers' diagram = ControllersDiagram.new options when 'aasm' diagram = AasmDiagram.new(options) else STDERR.print "#{APP_HUMAN_NAME} v#{APP_VERSION}\n" + "Error: You must supply a command\n" + " (try #{APP_NAME} -h)\n\n" exit 1 end diagram.process diagram.generate Dir.chdir(old_dir) diagram.print
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
railroady-1.3.0 | bin/railroady |
railroady-1.2.0 | bin/railroady |
railroady-1.1.2 | bin/railroady |