-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
51 lines (45 loc) · 1.09 KB
/
Rakefile
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
42
43
44
45
46
47
48
49
50
51
require 'bundler/gem_helper'
# require 'rspec/core/rake_task'
require './citadel_app'
require 'sinatra/activerecord/rake'
# desc 'Run all specs'
# RSpec::Core::RakeTask.new(:spec) do |t|
# t.rspec_opts = %w(--color)
# t.verbose = false
# end
begin
require 'rspec/core/rake_task'
desc 'Run all specs'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w(--color)
t.verbose = false
end
rescue LoadError
end
task default: :spec
namespace :fetch do
desc "Listens to zKillboard's listen service"
task :listen do
puts 'listening...'
KillmailIntegration.new.listen
puts 'complete'
end
desc 'Pull past killmails'
task :pull do
puts 'pulling mails...'
KillmailIntegration.new.json_to_killmail
puts 'complete'
end
end
namespace :update do
desc 'update legacy citadels with system_eveid'
task :system_eveid do
puts 'begin updated system_eveid... '
Citadel.all.each do |citadel|
puts "Citadel # #{citadel.id}"
citadel.system_eveid = citadel.killmails.first.system_eveid_from_json
citadel.save
end
puts 'complete'
end
end