Project

ungodly

0.0
No commit activity in last 3 years
No release in over 3 years
Rake task generator for the God gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.13.4
>= 0
 Project Readme

ungodly

Rake task generator for the God gem

Usage

The Ungodly.create_tasks(...) method generates a collection of Rake tasks that manage a specific God instance. Ideally, this method should be invoked within a Rake namespace. This will minimize the likelihood of clobbering existing tasks. For example:

#!/usr/bin/env rake

require 'ungodly'

namespace :my_project do
  namespace :god do

    Ungodly.create_tasks(
      port:            "1256",
      config_path:     "./workers.god",
      managed_pid_dir: "./tmp/pids"
    )

  end
end

Let's list the Rake tasks from the command line to verify that everything got generated correctly:

$ bundle exec rake -T
rake my_project:god:launch     # Launch god and the workers
rake my_project:god:status     # Show the status of the god workers
rake my_project:god:terminate  # Terminate god and the workers