Module: Aircana::CLI::Generate
- Defined in:
- lib/aircana/cli/commands/generate.rb
Class Method Summary collapse
Class Method Details
.generators ⇒ Object
11 12 13 14 15 16 |
# File 'lib/aircana/cli/commands/generate.rb', line 11 def generators @generators ||= [ Aircana::Generators::PlanCommandGenerator.new, Aircana::Generators::AskExpertCommandGenerator.new ] end |
.run ⇒ Object
18 19 20 21 22 23 |
# File 'lib/aircana/cli/commands/generate.rb', line 18 def run clean_output_directories generators.each(&:generate) generate_default_hooks Aircana.human_logger.success("Re-generated #{Aircana.configuration.output_dir} files.") end |