-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrawler.rb
32 lines (24 loc) · 864 Bytes
/
crawler.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# frozen_string_literal: true
# This file is the CONTROLLER.
# It contains only Task we want to run.
#--------------------------------------------------
# Pull in framework files
require_relative 'ad_starter_actions'
require_relative 'ad_starter_global_methods'
require_relative 'ad_starter_properties'
# Pull in Scripts with tasks (such as Excel export).
require_relative 'ad_starter_tasks'
# Can be moved to ad_starter_global_methods > #setup.
log_generation
# Call Scripts with tasks
visit_site_task
log_in_task
start_company_task
# OPTIMIZE: uncomment next block and delete previous block
# %i[target fb google wapstart].each do |place|
# puts "Doing ad company placement on #{place}"
# visit_site_task(place)
# log_in_task(place)
# start_company_task(place)
# end
# OPTIMIZE: remove proceed.txt, targets.txt and create production.yml + qa.yml