Sha256: 16d4384e28e04cc382098e5f1661c1bdf558cf58db0ba6ad32fb78d9a6f7ce18

Contents?: true

Size: 481 Bytes

Versions: 8

Compression:

Stored size: 481 Bytes

Contents

namespace :easy_ml do
  desc "Start resque-pool with the gem's configuration"
  task :resque_pool do
    require "resque"
    gem_path = Gem::Specification.find_by_name("easy_ml").gem_dir
    config_path = File.join(gem_path, "config", "resque-pool.yml")

    ENV["RESQUE_POOL_CONFIG"] = config_path
    puts "Starting resque-pool with config: #{config_path}"

    exec "bundle exec resque-pool --environment #{ENV["RAILS_ENV"] || "development"} --config #{config_path}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc18 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc17 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc16 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc15 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc14 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc13 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc12 lib/tasks/resque.rake
easy_ml-0.2.0.pre.rc11 lib/tasks/resque.rake