From bae90bae1bfa9cdd5d0cae7a124235e7b2c34e3c Mon Sep 17 00:00:00 2001 From: manu vasconcelos Date: Fri, 9 Feb 2024 13:49:12 -0300 Subject: [PATCH] add some puts to keep track of progress --- db/seeds.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index bc7e0b5156..41cf055684 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -24,6 +24,7 @@ def initialize(existing_user) end def create_users + puts "create users" @users ||= begin all_users = { @@ -52,6 +53,7 @@ def create_users end def create_teams + puts "create teams" @teams ||= begin all_teams = { @@ -153,6 +155,7 @@ 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", @@ -204,7 +207,6 @@ def create_populated_projects end private - def get_medias_params links = [ 'https://meedan.com/post/addressing-misinformation-across-countries-a-pioneering-collaboration-between-taiwan-factcheck-center-vera-files', @@ -261,6 +263,8 @@ def get_medias_params print ">> " answer = STDIN.gets.chomp +puts "Stretch your legs, this might take a while" + setup = Setup.new(answer.presence) # .presence : returns nil or the string PopulatedProjects.new(setup).create_populated_projects