Sha256: 94f1751ae3e64e4831212e31aacda7dd2cf3306f111a81a206ab83b279b3058b
Contents?: true
Size: 1.57 KB
Versions: 5
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. # # Modifications 2010-2015 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-2015 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
railroady-1.5.3 | bin/railroady |
railroady-1.5.2 | bin/railroady |
railroady-1.5.1 | bin/railroady |
railroady-1.5.0 | bin/railroady |
railroady-1.4.2 | bin/railroady |