Class: Muding::Generator::Commands::List

Inherits:
Base show all
Defined in:
lib/muding_generator/commands.rb

Overview

List a generator’s action manifest.

Instance Attribute Summary

Attributes inherited from Base

#args, #destination_root, #source_root

Attributes included from Options

#options

Instance Method Summary collapse

Methods inherited from Base

#invoke!

Methods inherited from Base

#destination_path, #initialize, #manifest, #source_path

Methods included from Options

append_features

Constructor Details

This class inherits a constructor from Muding::Generator::Base

Instance Method Details

#class_collisions(*class_names) ⇒ Object



451
452
453
# File 'lib/muding_generator/commands.rb', line 451

def class_collisions(*class_names)
  logger.class_collisions class_names.join(', ')
end

#complex_template(relative_source, relative_destination, options = {}) ⇒ Object



463
464
465
# File 'lib/muding_generator/commands.rb', line 463

def complex_template(relative_source, relative_destination, options = {})
  logger.template "#{options[:insert]} inside #{relative_destination}"
end

#dependency(generator_name, args, options = {}) ⇒ Object



447
448
449
# File 'lib/muding_generator/commands.rb', line 447

def dependency(generator_name, args, options = {})
  logger.dependency "#{generator_name}(#{args.join(', ')}, #{options.inspect})"
end

#directory(relative_path) ⇒ Object



467
468
469
# File 'lib/muding_generator/commands.rb', line 467

def directory(relative_path)
  logger.directory "#{destination_path(relative_path)}/"
end

#file(relative_source, relative_destination, options = {}) ⇒ Object



455
456
457
# File 'lib/muding_generator/commands.rb', line 455

def file(relative_source, relative_destination, options = {})
  logger.file relative_destination
end

#migration_template(relative_source, relative_destination, options = {}) ⇒ Object



475
476
477
478
# File 'lib/muding_generator/commands.rb', line 475

def migration_template(relative_source, relative_destination, options = {})
  migration_directory relative_destination
  logger.migration_template file_name
end

#readme(*args) ⇒ Object



471
472
473
# File 'lib/muding_generator/commands.rb', line 471

def readme(*args)
  logger.readme args.join(', ')
end

#template(relative_source, relative_destination, options = {}) ⇒ Object



459
460
461
# File 'lib/muding_generator/commands.rb', line 459

def template(relative_source, relative_destination, options = {})
  logger.template relative_destination
end