load_data.rake 787 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # frozen_string_literal: true
  2. namespace :load_data do
  3. desc 'Load accounts into the neo4j container'
  4. task :accounts do
  5. puts 'loading accounts'
  6. j = NeoInfra::Accounts.new
  7. j.load
  8. end
  9. desc 'Load VPCs into the neo4j container'
  10. task :vpcs do
  11. puts 'loading vpcs'
  12. j = NeoInfra::Vpcs.new
  13. j.load
  14. end
  15. desc 'Load Region and Availability Zone information'
  16. task :regions do
  17. puts 'loading regions'
  18. j = NeoInfra::Aws.new
  19. j.regions
  20. end
  21. desc 'Load S3 Buckets'
  22. task :buckets do
  23. puts 'loading buckets'
  24. j = NeoInfra::Aws.new
  25. j.buckets
  26. end
  27. desc 'Load Nodes'
  28. task :nodes do
  29. puts 'loading nodes'
  30. j = NeoInfra::Nodes.new
  31. j.nodes
  32. end
  33. desc 'Load Everything'
  34. task all: %i[accounts regions vpcs buckets nodes]
  35. end