8000 scheduled importer · rubysec/rubysec.com@66c5b20 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 66c5b20

Browse files
committed
scheduled importer
1 parent e8911b3 commit 66c5b20

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

Capfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require 'capistrano/bundler'
2525
# require 'capistrano/npm'
2626
require 'capistrano/rails/assets'
2727
require 'capistrano/rails/migrations'
28-
# require "whenever/capistrano"
28+
require "whenever/capistrano"
2929

3030
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
3131
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ gem "font-awesome-rails"
4040
# monitoring
4141
gem 'sentry-raven', '~> 0.13.3'
4242

43+
gem 'whenever', :require => false
44+
4345
# deployment
4446
gem 'unicorn-rails'
4547
gem 'capistrano', '~> 3.4.0'

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ GEM
7171
capistrano-bundler (~> 1.1)
7272
capistrano-rails-console (1.0.2)
7373
capistrano (>= 3.1.0, < 4.0.0)
74+
chronic (0.10.2)
7475
coderay (1.1.1)
7576
concurrent-ruby (1.0.4)
7677
debug_inspector (0.0.2)
@@ -218,6 +219,8 @@ GEM
218219
websocket-driver (0.6.4)
219220
websocket-extensions (>= 0.1.0)
220221
websocket-extensions (0.1.2)
222+
whenever (0.9.7)
223+
chronic (>= 0.6.3)
221224

222225
PLATFORMS
223226
ruby
@@ -253,6 +256,7 @@ DEPENDENCIES
253256
tzinfo-data
254257
uglifier (>= 1.3.0)
255258
unicorn-rails
259+
whenever
256260

257261
BUNDLED WITH
258262
1.13.1

config/schedule.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
every 6.hours do
2+
runner "RubysecImporter.new.import!"
3+
end

0 commit comments

Comments
 (0)
0