Methods

RubiGen::Scripts::Destroy

Protected Instance Methods

usage_message() click to toggle source
    # File lib/rubigen/scripts/destroy.rb, line 8
 8:     def usage_message
 9:       usage = "\nInstalled Generators\n"
10:       RubiGen::Base.sources.each do |source|
11:         label = source.label.to_s.capitalize
12:         names = source.names
13:         usage << "  #{label}: #{names.join(', ')}\n" unless names.empty?
14:       end
15: 
16:       # TODO - extensible blurbs for rails/newgem/adhearsion etc
17:       # e.g. for rails script/destroy
18:       # http://github.com/rails/rails/tree/daee6fd92ac16878f6806c3382a9e74592aa9656/railties/lib/rails_generator/scripts/destroy.rb
19:       usage << This script will destroy all files created by the corresponding script/generate command. For instance, script/destroy test_unit create_postwill delete the appropriate test_create_post.rb file in /test.      For instructions on finding new generators, run script/generate
20:       return usage
21:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.