Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. const simpleGit = require('simple-git')
  2. const github = 'https://github.com/'
  3.  
  4. const week = "5"
  5. const day = "1"
  6. const dailyExercise = 'lab-passport-roles'
  7. const pairExercise = 'lab-authentication-with-passport'
  8.  
  9. const studentsUser = [
  10. // {name: "Leticia", git: "letiescanciano/"},
  11. // {name: "María", git: "gabaldon/"},
  12. // {name: "Noah", git: "NoahRiseUp/"},
  13. // {name: "Paula", git: "pactices/"},
  14. // {name: "Teo", git: "ambarino/"},
  15. // {name: "Tino", git: "tinoguti/"},
  16. // {name: "Lucía", git: "lulastray/"},
  17. // {name: "Sachín", git: "sachin6291/"},
  18.  
  19. {name: "Anthony", git: "totixter/"},
  20. {name: "Jorge Rodríguez", git: "JorgeAngst/"},
  21. {name: "Ben", git: "benjamingarciap/"},
  22. {name: "Manu", git: "Marnelas/"},
  23. {name: "Juan", git: "jperezGago/"},
  24. {name: "Jorge L. Hernández", git: "JorgeLHdezFdez/"},
  25. {name: "Cris", git: "LadyCrispy/"},
  26. {name: "Alessio", git: "evilloh/"}
  27. //-------------------------------------------------------------- {name: "Ferbo", git: "Ferbo13/"}
  28. ]
  29.  
  30. // const firstProject = [
  31. // {name: "María", git: "gabaldon/", project: "catch-the-light"},
  32. // {name: "Tino", git: "tinoguti/", project: "zombie-attack"},
  33. // {name: "Lucía", git: "lulastray/", project: "videojuego-Maths-Attack"},
  34. // {name: "Ferbo", git: "Ferbo13/", project: "El-Capitan"},
  35. // {name: "Jorge", git: "JorgeAngst/", project: ""},
  36. // {name: "Ben", git: "benjamingarciap/", project: "IRONHACK_Navecitas_Locas"},
  37. // {name: "Anthony", git: "totixter/", project: "president-fighter"},
  38. // {name: "Cris", git: "LadyCrispy/", project: "Peludos-en-Apuros"},
  39. // {name: "Alessio", git: "evilloh/", project: "Get-Trumped"},
  40. // ]
  41.  
  42. const studentsPair = [
  43. {pair: "Noah y Alessio", git: "evilloh/"},
  44. {pair: "Lucía y Tino", git: "lulastray/"},
  45. {pair: "María y Sachín", git: "sachin6291/"},
  46. {pair: "Cris y Paula", git: "pactices/"},
  47. ]
  48.  
  49. const dailyFolder = `../Exercises/week${week}/day${day}/${dailyExercise}`
  50. const pairFolder = `../Exercises/week${week}/day${day}/${pairExercise}`
  51.  
  52. studentsUser.forEach(user => {
  53. simpleGit().clone(`${github}${user.git}${dailyExercise}`, `${dailyFolder}/${user.name}`)
  54. console.log(`Downloading ${dailyExercise} from ${user.git}`)
  55. })
  56.  
  57. studentsPair.forEach(user => {
  58. simpleGit().clone(`${github}${user.git}${pairExercise}`, `${pairFolder}/${user.pair}`)
  59. console.log(`Downloading ${pairExercise} from ${user.git}`)
  60. })
  61.  
  62. // firstProject.forEach(user => {
  63. // simpleGit().clone(`${github}${user.git}${user.project}`, `../FirstProject/${user.name}`)
  64. // console.log(`Downloading ${user.project} from ${user.git}`)
  65. // })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement