Ensure that watcher does not try to run a module that is not a koan

This commit is contained in:
Uku Taht
2016-04-06 10:08:51 +01:00
parent 305b6f8ca5
commit 04817ff6e8
2 changed files with 8 additions and 2 deletions

View File

@@ -14,6 +14,10 @@ defmodule Runner do
Tasks,
]
def koan?(module) do
Enum.member?(@modules, module)
end
def run do
Options.initial_koan
|>run