Skip to content

Commit 0885bfb

Browse files
floehoppersebjacobs
andcommitted
Improve projects:create_experience_cs_examples output
Previously we were only creating a single project, so the identifier was implied. Now we're creating two projects, so it's probably helpful to include the project identifier in the output each time. Co-authored-by: Seb Jacobs <[email protected]>
1 parent 66b1267 commit 0885bfb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/tasks/projects.rake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ namespace :projects do
2525
}
2626
]
2727
projects.each do |attributes|
28+
identifier = attributes[:identifier]
2829
if Project.unscoped.exists?(attributes.slice(:identifier, :locale))
29-
puts 'Scratch project already exists'
30+
puts "Scratch project with identifier '#{identifier}' already exists"
3031
elsif Project.create(attributes)
31-
puts 'Scratch project created successfully'
32+
puts "Scratch project with identifier '#{identifier}' created successfully"
3233
else
33-
puts 'Scratch project creation failed'
34+
puts "Scratch project with identifier '#{identifier}' creation failed"
3435
end
3536
end
3637
end

0 commit comments

Comments
 (0)