Skip to content

Commit

Permalink
Allow specifying a function for goon_driver_path
Browse files Browse the repository at this point in the history
  • Loading branch information
evax committed Feb 23, 2017
1 parent 83f1e0f commit 5edd1f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/porcelain/init.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ defmodule Porcelain.Init do

defp find_goon() do
cond do
path=get_env(:goon_driver_path) ->
case path do
{mod, fun} ->
apply(mod, fun, [])
_ ->
path
end
path=get_env(:goon_driver_path) ->
path
File.exists?("goon") ->
Expand Down

0 comments on commit 5edd1f6

Please sign in to comment.