Sha256: 918f02818ba4de121ef39f5fa73bf4361792d9b620897ba9010710aa82275a01
Contents?: true
Size: 1009 Bytes
Versions: 9
Compression:
Stored size: 1009 Bytes
Contents
require File.dirname(__FILE__) + '/../scripts' module RubiGen::Scripts class Destroy < Base mandatory_options :command => :destroy protected def usage_message usage = "\nInstalled Generators\n" RubiGen::Base.sources.each do |source| label = source.label.to_s.capitalize names = source.names usage << " #{label}: #{names.join(', ')}\n" unless names.empty? end # TODO - extensible blurbs for rails/newgem/adhearsion etc # e.g. for rails script/destroy # http://github.com/rails/rails/tree/daee6fd92ac16878f6806c3382a9e74592aa9656/railties/lib/rails_generator/scripts/destroy.rb usage << <<-end_blurb This script will destroy all files created by the corresponding script/generate command. For instance, script/destroy test_unit create_post will delete the appropriate test_create_post.rb file in /test. For instructions on finding new generators, run script/generate end_blurb return usage end end end
Version data entries
9 entries across 9 versions & 1 rubygems