diff --git a/apps/dashboard/app/models/project.rb b/apps/dashboard/app/models/project.rb index 62db4b790..c876e9887 100644 --- a/apps/dashboard/app/models/project.rb +++ b/apps/dashboard/app/models/project.rb @@ -253,7 +253,7 @@ def sync_template oe, s = Open3.capture2e(*rsync_args) raise oe unless s.success? - save_new_scripts + save_new_launchers rescue StandardError => e errors.add(:save, "Failed to sync template: #{e.message}") false @@ -262,7 +262,7 @@ def sync_template # When copying a project from a template, we need new Launcher objects # that point to the _new_ project directory, not the template's directory. # This creates them _and_ serializes them to yml in the new directory. - def save_new_scripts + def save_new_launchers dir = Launcher.scripts_dir(template) Dir.glob("#{dir}/*/form.yml").map do |script_yml| Launcher.from_yaml(script_yml, project_dataroot)