Sha256: c293b17b90a7931fe0a41b3018d614b9f79ef2b748fab933931063101f5318e8

Contents?: true

Size: 637 Bytes

Versions: 188

Compression:

Stored size: 637 Bytes

Contents

module Rails
  module Generators
    class GeneratorGenerator < NamedBase
      check_class_collision :suffix => "Generator"

      class_option :namespace, :type => :boolean, :default => true,
                               :desc => "Namespace generator under lib/generators/name"

      def create_generator_files
        directory '.', generator_dir
      end

      protected

        def generator_dir
          if options[:namespace]
            File.join("lib", "generators", regular_class_path, file_name)
          else
            File.join("lib", "generators", regular_class_path)
          end
        end

    end
  end
end

Version data entries

188 entries across 149 versions & 19 rubygems

Version Path
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/generator/generator_generator.rb
jquery_regex-0.0.1 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/railties-3.2.8/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb
challah-0.8.3 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/rails/generator/generator_generator.rb
challah-0.8.3 vendor/bundle/gems/railties-3.2.9/lib/rails/generators/rails/generator/generator_generator.rb
railties-3.2.9 lib/rails/generators/rails/generator/generator_generator.rb
railties-3.2.9.rc3 lib/rails/generators/rails/generator/generator_generator.rb
railties-3.2.9.rc2 lib/rails/generators/rails/generator/generator_generator.rb
railties-3.2.9.rc1 lib/rails/generators/rails/generator/generator_generator.rb
challah-0.8.1 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.1.0 vendor/bundle/gems/railties-3.2.8/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.1.0 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb
challah-0.8.0.pre vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb
challah-0.7.1 vendor/bundle/gems/railties-3.2.7/lib/rails/generators/rails/generator/generator_generator.rb