COMMANDO

Commandoes is a project designed to help any ruby app use the command pattern to change state.

PREREQUISITES

  • ruby-2.3.1

DEPENDENCIES

INSTALLATION

In your Gemfile

gem 'commando', github: 'mdelkins/commando'

EXAMPLES

  1. Command & Handler
  2. Registry & Dispatcher

PLUGINS

Commandoes uses a plugin system similar to sequel or roda to extend the behavior of your command objects. Currently their are two dependent plugins:

  • Commandoes::Plugins::VirtusPlugin
  • Commandoes::Plugins::ActiveModelPlugin

Commandoes::Plugins::VirtusPlugin

This plugin injects the Virtus.value_object behavior into Commandoes::IAmACommand as well as a few helper methods for easily defining typed attributes.

Commandoes::Plugins::ActiveModelPlugin

This plugin is used to give commands active model like validation behavior.