-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrakefile.rb
More file actions
41 lines (34 loc) · 1.05 KB
/
rakefile.rb
File metadata and controls
41 lines (34 loc) · 1.05 KB
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
33
34
35
36
37
38
39
40
41
require './app/model'
require 'sinatra/activerecord/rake'
require 'migration_data'
task :environment do
ENV['RACK_ENV'] ||= 'development'
require './config/boot.rb'
end
namespace :crawlers do
# Process libraries from android arsenal (feed rss)
# ~$ rake crawlers:aa_feed
task :aa_feed => :environment do
parser = AndroidArsenalFeedParser.new(1, 63)
compile_statements = parser.process_feed
end
# Process libraries from android arsenal
# ~$ rake crawlers:aa
task :aa => :environment do
parser = AndroidArsenalParser.new(1, 63)
compile_statements = parser.process
end
# Creates a list of libs from bintray
# ~$ rake crawlers:bintray
task :bintray => :environment do
parser = BintrayParser.new(0, 292)
compile_statements = parser.parse
File.open("bintray_list", 'w') { |file| file.write(compile_statements) }
end
end
# Compute methods count for given lib name
# ~$ rake compute <lib name>
task :compute => :environment do
library_name = ARGV.last
LibraryMethodsCount.new(library_name).compute_dependencies()
end