Class: Rails::Generator::Commands::List
- Inherits:
-
Base
show all
- Defined in:
- lib/rails_generator/commands.rb
Overview
List a generator’s action manifest.
Instance Attribute Summary
Attributes inherited from Base
#args, #destination_root, #source_root
Instance Method Summary
collapse
Methods inherited from Base
#invoke!
Methods inherited from Base
#destination_path, #initialize, #manifest, #source_path
Instance Method Details
#class_collisions(*class_names) ⇒ Object
345
346
347
|
# File 'lib/rails_generator/commands.rb', line 345
def class_collisions(*class_names)
logger.class_collisions class_names.join(', ')
end
|
#complex_template(relative_source, relative_destination, options = {}) ⇒ Object
357
358
359
|
# File 'lib/rails_generator/commands.rb', line 357
def complex_template(relative_source, relative_destination, options = {})
logger.template "#{options[:insert]} inside #{relative_destination}"
end
|
#dependency(generator_name, args, options = {}) ⇒ Object
341
342
343
|
# File 'lib/rails_generator/commands.rb', line 341
def dependency(generator_name, args, options = {})
logger.dependency "#{generator_name}(#{args.join(', ')}, #{options.inspect})"
end
|
#directory(relative_path) ⇒ Object
361
362
363
|
# File 'lib/rails_generator/commands.rb', line 361
def directory(relative_path)
logger.directory "#{destination_path(relative_path)}/"
end
|
#file(relative_source, relative_destination, options = {}) ⇒ Object
349
350
351
|
# File 'lib/rails_generator/commands.rb', line 349
def file(relative_source, relative_destination, options = {})
logger.file relative_destination
end
|
#readme(*args) ⇒ Object
365
366
367
|
# File 'lib/rails_generator/commands.rb', line 365
def readme(*args)
logger.readme args.join(', ')
end
|
#template(relative_source, relative_destination, options = {}) ⇒ Object
353
354
355
|
# File 'lib/rails_generator/commands.rb', line 353
def template(relative_source, relative_destination, options = {})
logger.template relative_destination
end
|