<%= Rails.version -%> <%= Rails.root -%> <%= Rails.env -%> <%= if File.exist?("#{Rails.root}/.git") "git" elsif File.exist?("#{Rails.root}/.svn") "subversion" else "other" end -%> <%= File.basename(`git symbolic-ref HEAD`) -%> <% dir=Rails.root if dir.blank? -%> <%= Dir.chdir(dir) {`git rev-parse --verify HEAD --short=7`} -%> <% dir=Rails.root if dir.blank? -%> <%= Dir.chdir(dir) {`git status -s`}.blank? ? "clean" : "dirty" -%> <%= `git log -1 --format=%cD` -%> <% method = cms_method.strip -%> <% method = cms_method.strip -%> <% method = cms_method.strip -%> <% method = cms_method.strip -%> <%= Hobo::VERSION -%> <% gems = Bundler::LockfileParser.new(File.read('Gemfile.lock')).specs -%> <%= this.name -%> <%= this.version.to_s -%> <%= this.dependencies(&it.to_s).safe_join('
'.html_safe) -%>
<% plugins = Rails.application.railties.plugins %> <%= this.name.to_s -%> <%= this.root.to_s -%> <%= braids = File.open("#{Rails.root}/.braids") {|f| YAML::load(f) } rescue {} if !braids[this.root.to_s.gsub(Rails.root+"/", "")].nil? "braid" elsif File.lstat(this.root.to_s).symlink? "symlink" elsif File.exist?(this.root.to_s+"/.git") "git-submodule" else "other" end -%> <% method = plugin_method.strip -%> <% method = plugin_method.strip -%> <%= diff=`braid diff #{this.directory.gsub(Rails.root+"/", "")}` diff.strip.empty? ? "clean" : "modified" -%> <%= braids = File.open("#{Rails.root}/.braids") {|f| YAML::load(f) } rescue {} b=braids[this.directory.gsub(Rails.root+"/", "")] b['revision'][0...7] if b -%> <%= this -%> <%= Rails.configuration.database_configuration[this]['adapter'] -%> <%= Rails.configuration.database_configuration[this]['database'] -%> <% # stolen from railroad/model_diagram.rb files = Dir.glob("app/models/**/*.rb") models = files.map do |file| model_name = (model_path = file.gsub(/^(app\/models\/)([\w_\/\\]+)\.rb/, '\2')).camelize # Hack to skip all xxx_related.rb files next if /_related/i =~ model_name begin model_name.constantize rescue LoadError oldlen = model_path.length model_path.gsub!(/.*[\/\\]/, '') model_name = model_path.camelize if oldlen > model_path.length retry end next rescue NameError next end end -%> <%= this.to_s -%> <%= this.try.table_name -%> <%= this.try.comment -%> <%= this.type.to_s -%> <%= this.name -%> <%= this.try.comment || model.try.field_specs.try.get(this.name).try.first.try.comment -%> <%= this.name.to_s -%> <%= if this.macro.to_s=='has_many' && this.options[:through] 'has_many :through' else this.macro.to_s end -%> <%= (this.class_name.try.respond_to? 'underscore') ? this.class_name.underscore.singularize.camelize : this.try.class_name -%>