class Liquigen::Scaffold::Config
Public Instance Methods
prepare_default_content()
click to toggle source
# File lib/liquigen/scaffold/config.rb, line 13 def prepare_default_content contents = [] contents << '# You can remove the # to set your custom value' contents << '# package_name=your-package-name, required' contents << '# java_codes_root=src/main/java' contents << '# migration_path=src/main/resources/db/migrations' contents << '# controller_package_name=' contents << '# entity_package_name=' contents << '# repository_package_name=' contents << '# repository_suffix=Repository' contents << '' end
process()
click to toggle source
write config file
# File lib/liquigen/scaffold/config.rb, line 5 def process # if not exist the .liquigen file create it File.write(CONFIG_FILE, prepare_default_content.join("\n")) unless File.exist?(CONFIG_FILE) # then open the vim editor system('vi ' + CONFIG_FILE) end