Sha256: cca09d9f57eb09ff0b5be9823bc398f56025e53b7371e3893f9bd7df06d59b57

Contents?: true

Size: 774 Bytes

Versions: 22

Compression:

Stored size: 774 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

      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

22 entries across 22 versions & 1 rubygems

Version Path
rubigen-1.0.4 lib/rubigen/scripts/destroy.rb
rubigen-1.0.2 lib/rubigen/scripts/destroy.rb
rubigen-1.0.0 lib/rubigen/scripts/destroy.rb
rubigen-1.0.1 lib/rubigen/scripts/destroy.rb
rubigen-1.0.3 lib/rubigen/scripts/destroy.rb
rubigen-1.0.8 lib/rubigen/scripts/destroy.rb
rubigen-1.2.4 lib/rubigen/scripts/destroy.rb
rubigen-1.2.2 lib/rubigen/scripts/destroy.rb
rubigen-1.3.2 lib/rubigen/scripts/destroy.rb
rubigen-1.2.0 lib/rubigen/scripts/destroy.rb
rubigen-1.3.3 lib/rubigen/scripts/destroy.rb
rubigen-1.0.6 lib/rubigen/scripts/destroy.rb
rubigen-1.2.1 lib/rubigen/scripts/destroy.rb
rubigen-1.3.1 lib/rubigen/scripts/destroy.rb
rubigen-1.2.3 lib/rubigen/scripts/destroy.rb
rubigen-1.1.1 lib/rubigen/scripts/destroy.rb
rubigen-1.3.0 lib/rubigen/scripts/destroy.rb
rubigen-1.0.5 lib/rubigen/scripts/destroy.rb
rubigen-1.0.7 lib/rubigen/scripts/destroy.rb
rubigen-1.1.0 lib/rubigen/scripts/destroy.rb