diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-24 14:01:31 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-09-24 16:11:41 -0700 |
commit | f0dd77c6be6a86fe384bb0015151e0a497973d39 (patch) | |
tree | ad81bb4c807c39edeaa37035882a16d9d95ebaa9 /railties/lib/generators/rails/generator | |
parent | 610b81beca461a6fa4f00c7023e0e4315eb2b8be (diff) | |
download | rails-f0dd77c6be6a86fe384bb0015151e0a497973d39.tar.gz rails-f0dd77c6be6a86fe384bb0015151e0a497973d39.tar.bz2 rails-f0dd77c6be6a86fe384bb0015151e0a497973d39.zip |
Move railties/lib/* into railties/lib/*
Diffstat (limited to 'railties/lib/generators/rails/generator')
5 files changed, 0 insertions, 49 deletions
diff --git a/railties/lib/generators/rails/generator/USAGE b/railties/lib/generators/rails/generator/USAGE deleted file mode 100644 index ca7d3f62d0..0000000000 --- a/railties/lib/generators/rails/generator/USAGE +++ /dev/null @@ -1,11 +0,0 @@ -Description: - Stubs out a new generator at lib/generators. Pass the generator name, either - CamelCased or under_scored, as an argument. - -Example: - `./script/generate generator Awesome` - - creates a standard awesome generator: - lib/generators/awesome/ - lib/generators/awesome/awesome_generator.rb - lib/generators/awesome/templates/ diff --git a/railties/lib/generators/rails/generator/generator_generator.rb b/railties/lib/generators/rails/generator/generator_generator.rb deleted file mode 100644 index 5b5d1884bc..0000000000 --- a/railties/lib/generators/rails/generator/generator_generator.rb +++ /dev/null @@ -1,25 +0,0 @@ -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", file_name) - else - File.join("lib", "generators") - end - end - - end - end -end diff --git a/railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt b/railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt deleted file mode 100644 index 675f00043f..0000000000 --- a/railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt +++ /dev/null @@ -1,5 +0,0 @@ -class <%= class_name %>Generator < Rails::Generators::NamedBase - def self.source_root - @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) - end -end diff --git a/railties/lib/generators/rails/generator/templates/USAGE.tt b/railties/lib/generators/rails/generator/templates/USAGE.tt deleted file mode 100644 index ea9f4f12cc..0000000000 --- a/railties/lib/generators/rails/generator/templates/USAGE.tt +++ /dev/null @@ -1,8 +0,0 @@ -Description: - Explain the generator - -Example: - ./script/generate <%= file_name %> Thing - - This will create: - what/will/it/create diff --git a/railties/lib/generators/rails/generator/templates/templates/.empty_directory b/railties/lib/generators/rails/generator/templates/templates/.empty_directory deleted file mode 100644 index e69de29bb2..0000000000 --- a/railties/lib/generators/rails/generator/templates/templates/.empty_directory +++ /dev/null |