Sha256: 74af508b8a02710522d9ebe8c98f7e78644d45b9afb8b6efa635dd748348b5f8
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env ruby # RailRoad - RoR diagrams generator # http://railroad.rubyforge.org # # RailRoad generates models and controllers diagrams in DOT language # for a Rails application. # # Copyright 2007 - 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. # APP_NAME = "railroad" APP_HUMAN_NAME = "RailRoad" APP_VERSION = [0,3,4] COPYRIGHT = "Copyright (C) 2007 Javier Smaldone" require 'railroad/options_struct' require 'railroad/models_diagram' require 'railroad/controllers_diagram' options = OptionsStruct.new options.parse ARGV if options.command == 'models' diagram = ModelsDiagram.new options elsif options.command == 'controllers' diagram = ControllersDiagram.new options else STDERR.print "Error: You must supply a command\n" + " (try #{APP_NAME} -h)\n\n" exit 1 end diagram.generate diagram.print
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railroad-0.3.4 | bin/railroad |