No commit activity in last 3 years
No release in over 3 years
A planning extension for Distribot handlers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Build Status Gem Version Code Climate Test Coverage Issue Count

distribot-planner

A planning extension for Distribot handlers.

Installation

In your Gemfile

gem 'distribot-planner'

Usage

require 'distribot-planner'

Distribot.plan :greeting do
  task :get_name do
    handler HandlerTo::GetName
  end

  group :decide_greeting_context, depends_on: :get_name do
    handler HandlerTo::GetTimeOfDay
    handler HandlerTo::GuessGender
    handler HandlerTo::DetermineSocialStatus
  end

  task :assemble_greeting, depends_on: :decide_greeting_context do
    handler HandlerTo::AssembleGreeting
  end

  task :wait_for_proper_timing, depends_on: :assemble_greeting do
    handler HandlerTo::WaitForProperTiming
  end

  task :say_greeting, depends_on: :wait_for_proper_timing do
    handler HandlerTo::SayGreeting
  end
end