Skip to content

Commit

Permalink
Document hooks, closes cucumber#96
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Dec 8, 2011
1 parent c6a6e17 commit 79735b3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -75,6 +75,18 @@ To get more information on what Aruba is doing, use these tags:
* `@announce-env` - See environment variables set by Aruba
* `@announce` - Does all of the above

### Adding Hooks

You can hook into Aruba's lifecycle just before it runs a command:

```
Aruba.configure do |config|
config.before_cmd do |cmd|
puts "About to run '#{cmd}'
end
end
```

#### Keep files around with `@no-clobber`

Aruba clobbers all files in its working directory before each scenario. -Unless you tag it with `@no-clobber`
Expand Down

0 comments on commit 79735b3

Please sign in to comment.