lib/hephaestus/app_builder.rb in hephaestus-0.6.0 vs lib/hephaestus/app_builder.rb in hephaestus-0.6.1
- old
+ new
@@ -156,10 +156,13 @@
end
def replace_generic_variables
say(set_color("Replacing generic variable names...", :cyan))
replace_in_files(destination_root, /App(?!lication)/, short_app_name.capitalize)
+
replace_in_files(destination_root, %r{(?<!yetto|sw|plugs\.yetto\.)app(?!lication|/|roximate)}, short_app_name.downcase)
+ replace_in_file("test/support/api.rb", "/app/", "/#{short_app_name.downcase}/")
+
replace_in_files(destination_root, "PlugApp", app_name.underscore.camelcase)
replace_in_files(destination_root, "plug-app", app_name.dasherize)
replace_in_files("destination_root}/.github/workflows/test.yml", "plug-app", app_name.dasherize)
replace_in_files(destination_root, "PLUG_APP", app_name.underscore.upcase)
replace_in_files(destination_root, "plug_app", app_name.underscore)