Class: GemGenerator::Command

Inherits:
ProjectGenerator::Command
  • Object
show all
Includes:
ProcessFiles
Defined in:
lib/gem_generator/command.rb,
lib/gem_generator/command/process_files.rb,
lib/gem_generator/command/process_files/render_variables.rb

Overview

Main CLI command for Gem Generator

Defined Under Namespace

Modules: ProcessFiles

Constant Summary

Constants included from ProcessFiles

ProcessFiles::RENAME_FILES_PLACEHOLDERS

Instance Method Summary collapse

Instance Method Details

#executeObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/gem_generator/command.rb', line 21

def execute
	check_target_directory

	## Prevent error like '"FIXME" or "TODO" is not a description' for `bundle install`
	@summary = ask_for_summary

	refine_template_parameter if git?

	process_files

	install_dependencies

	initialize_git

	FileUtils.rm_r @git_tmp_dir if git?

	done
end