Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3901 rename project#create_new_scripts to project#create_new_launchers #3918

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading