Skip to content

Instantly share code, notes, and snippets.

View smostovoy's full-sized avatar

Sergii Mostovyi smostovoy

View GitHub Profile
@smostovoy
smostovoy / enqueue.rb
Created December 11, 2012 03:57
script for direct puting job into queue(sidekiq) w/o loading rails
#!/usr/bin/env ruby
begin
require 'sidekiq'
require 'honeybadger'
require File.expand_path(File.dirname(__FILE__)+"/../app/workers/base_worker")
Dir[File.dirname(__FILE__)+"/../app/workers/**/**"].each {|file| require File.expand_path(File.dirname(__FILE__)+file) }
worker = ARGV[0]
arg = ARGV[1]