Skip to content

Commit

Permalink
review: change where we inform the user
Browse files Browse the repository at this point in the history
  • Loading branch information
vasconsaurus committed Feb 14, 2024
1 parent 5102db4 commit e2999a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def get_users_emails_and_passwords
end

def create_users
puts "create users"
@users ||= begin

all_users = {
Expand Down Expand Up @@ -68,7 +67,6 @@ def create_users
end

def create_teams
puts "create teams"
@teams ||= begin

all_teams = {
Expand Down Expand Up @@ -175,7 +173,6 @@ def initialize(setup)
end

def create_populated_projects
puts 'create populated projects'
projects_params = [
{
title: "#{teams[:main_team_a][:name]} / [a] Main User: Main Team",
Expand Down Expand Up @@ -340,9 +337,12 @@ def get_url_for_some_fact_checks(index)

puts "Stretch your legs, this might take a while"
puts "On a mac took about 10 minutes to create all populated workspaces"
puts "—————"

begin
puts 'Creating users and teams...'
setup = Setup.new(answer.presence) # .presence : returns nil or the string
puts 'Creating projects for all users...'
PopulatedProjects.new(setup).create_populated_projects
rescue RuntimeError => e
if e.message.include?('We could not parse this link')
Expand Down

0 comments on commit e2999a8

Please sign in to comment.