Skip to content

Commit aebbefd

Browse files
committed
HOOKS.md
1 parent 124be1b commit aebbefd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

PLUGINS.md renamed to HOOKS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Resque Plugins
2-
==============
1+
Resque Hooks
2+
============
33

4-
Resque encourages plugin development. For a list of available plugins
5-
see <http://wiki.github.com/defunkt/resque/plugins>
4+
You can customize Resque or write plugins using its hook API. In many
5+
cases you can use a hook rather than mess with Resque's internals.
66

7-
In most cases you can customize your environment with a plugin rather
8-
than adding to Resque itself.
7+
For a list of available plugins see
8+
<http://wiki.github.com/defunkt/resque/plugins>.
99

1010

1111
Worker Hooks
@@ -38,7 +38,7 @@ The `after_fork` hook will be run in the child process and is passed
3838
the current job. Any changes you make, therefor, will only live as
3939
long as the job currently being processes.
4040

41-
All hooks can also be set using a setter, e.g.
41+
All worker hooks can also be set using a setter, e.g.
4242

4343
Resque.after_fork = proc { puts "called" }
4444

README.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,15 +654,15 @@ this way we can tell our Sinatra app about the config file:
654654
Now everyone is on the same page.
655655

656656

657-
Plugins
658-
-------
657+
Plugins and Hooks
658+
-----------------
659659

660660
For a list of available plugins see
661661
<http://wiki.github.com/defunkt/resque/plugins>.
662662

663-
If you'd like to write your own plugin, or want to see what hooks are
664-
available (such as `Resque.after_fork`), see
665-
[PLUGINS.md](http://github.com/defunkt/resque/blob/master/PLUGINS.md).
663+
If you'd like to write your own plugin, or want to customize Resque
664+
using hooks (such as `Resque.after_fork`), see
665+
[HOOKS.md](http://github.com/defunkt/resque/blob/master/HOOKS.md).
666666

667667

668668
Namespaces

0 commit comments

Comments
 (0)