Sha256: d87060603644c0350bc0e52d43708b1ac06d34b2881e3f6bf6c0a908c3f4eae2

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

# COMMANDO

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

## PREREQUISITES
* ruby-2.3.1

## DEPENDENCIES
* Virtus (https://github.com/solnic/virtus)
* ActiveModel::Validations

## INSTALLATION

In your Gemfile

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

## EXAMPLES

1. [Command & Handler](./examples/command_and_handler.md)
2. [Registry & Dispatcher](./examples/command_registry_and_dispatcher.md)

## PLUGINS

Commandoes uses a plugin system similar to
[sequel](https://github.com/jeremyevans/sequel) or
[roda](https://github.com/jeremyevans/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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commandoes-0.1.1 README.md