Skip to content

Commit fbdd108

Browse files
committedOct 26, 2014
Suggest starting rotors with Rotor.start
1 parent ea9ea38 commit fbdd108

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

Diff for: ‎README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ Rotor is a build system for Elixir projects. Use it to compile things, run comma
1919
### Usage
2020

2121
* Add rotor as a dependency to your `mix.exs`
22-
* Add `:rotor` to your app's start list (read below)
2322
* Define watch groups in `config/rotors.exs`
23+
* Run `Rotor.start` in your `IEx` console to run the rotors
2424

25+
You can also start Rotor anywhere in your code
2526

2627
### Example 1: Reload Elixir modules whenever they change
2728

Diff for: ‎lib/rotor.ex

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ defmodule Rotor do
1414
end
1515

1616

17+
def start do
18+
Application.start :rotor
19+
end
20+
21+
1722
defdelegate group_info(name), to: Rotor.GroupServer, as: :get
1823
defdelegate all(), to: Rotor.GroupServer, as: :all
1924

0 commit comments

Comments
 (0)
Please sign in to comment.