123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # frozen_string_literal: true
- namespace :load_data do
- desc 'Load accounts into the neo4j container'
- task :accounts do
- puts 'loading accounts'
- j = NeoInfra::Accounts.new
- j.load
- end
- desc 'Load VPCs into the neo4j container'
- task :vpcs do
- puts 'loading vpcs'
- j = NeoInfra::Vpcs.new
- j.load
- end
- desc 'Load VPC Peers into the neo4j container'
- task :peer do
- puts 'loading vpc peers'
- j = NeoInfra::Vpcs.new
- j.load_peers
- end
- desc 'Load Region and Availability Zone information'
- task :regions do
- puts 'loading regions'
- j = NeoInfra::Aws.new
- j.load_regions
- end
- desc 'Load S3 Buckets'
- task :buckets do
- puts 'loading buckets'
- j = NeoInfra::Aws.new
- j.load_buckets
- end
- desc 'Load Nodes'
- task :nodes do
- puts 'loading nodes'
- j = NeoInfra::Nodes.new
- j.load_nodes
- end
- desc 'Load RDS'
- task :rds do
- puts 'loading rds'
- j = NeoInfra::Aws.new
- j.load_rds
- end
- desc 'Load Security Groups'
- task :security_groups do
- puts 'loading Security Groups'
- j = NeoInfra::Aws.new
- j.load_security_groups
- end
- desc 'Load Dynamo'
- task :dynamo do
- puts 'loading Dynamo'
- j = NeoInfra::Aws.new
- j.load_dynamo
- end
- desc 'Load Lambdas'
- task :lambda do
- puts 'loading Lambdas'
- j = NeoInfra::Aws.new
- j.load_lambda
- end
- desc 'Load SQS'
- task :sqs do
- puts 'loading SQS'
- j = NeoInfra::Aws.new
- j.load_queues
- end
- desc 'Load Everything'
- task all: %i[accounts regions vpcs peer buckets security_groups nodes rds dynamo lambda sqs]
- end
|