Skip to content

distribot/distribot-planner

Repository files navigation

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

About

A planning extension for Distribot handlers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages