Class: RubiGen::Scripts::Destroy

### Home Classes Methods

### In Files

- lib/rubigen/scripts/destroy.rb

### Parent

RubiGen::Scripts::Base

### Methods

- #usage_message

### Files

- History.txt
- License.txt
- Manifest.txt
- Todo.txt
- README.txt
- index.txt
- version-raw.txt
- version.txt

### Class/Module Index

Quicksearch

- RubiGen
- RubiGen::AbstractGemSource
- RubiGen::Base
- RubiGen::Commands
- RubiGen::Commands::Base
- RubiGen::Commands::Create
- RubiGen::Commands::Destroy
- RubiGen::Commands::List
- RubiGen::Commands::RewindBase
- RubiGen::Commands::Update
- RubiGen::GemPathSource
- RubiGen::GeneratedAttribute
- RubiGen::GeneratorError
- RubiGen::GeneratorTestHelper
- RubiGen::Lookup
- RubiGen::Lookup::ClassMethods
- RubiGen::Manifest
- RubiGen::Options
- RubiGen::Options::ClassMethods
- RubiGen::PathFilteredSource
- RubiGen::PathSource
- RubiGen::Scripts
- RubiGen::Scripts::Base
- RubiGen::Scripts::Destroy
- RubiGen::Scripts::Generate
- RubiGen::Scripts::Update
- RubiGen::Source
- RubiGen::Spec
- RubiGen::UsageError
- Rubigen
- Rubigen::CLI
- Dir
- Object

No matching classes.

# RubiGen::Scripts::Destroy

### Protected Instance Methods

usage_message() click to toggle source

    # File lib/rubigen/scripts/destroy.rb, line 8
    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 << 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
      return usage
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.