Skip to content

Commit

Permalink
rename project#create_new_scripts to project#create_new_launchers (#3918
Browse files Browse the repository at this point in the history
)
  • Loading branch information
euler-room authored Oct 30, 2024
1 parent 28ab378 commit 643115b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 643115b

Please sign in to comment.