   defp twiki(repo) when is_atom(repo) do
     migration_dir =
       repo
-      |> Ecto.source_repo_priv
-      |> Path.absname
+      |> Ecto.source_repo_priv()
+      |> Path.absname()
       |> Path.join("migrations")
 
     count = down_count(repo, migration_dir)
 
-    Enum.each([:up, :down, :up], fn(direction) ->
-      migrate(direction, repo, migration_dir, [step: count])
+    Enum.each([:up, :down, :up], fn direction ->
+      migrate(direction, repo, migration_dir, step: count)
     end)
   end
 

  defp direction_count(direction, repo, migration_dir) do
    repo
    |> Migrator.migrations(migration_dir)
    |> Enum.filter(fn({status, _, _}) -> status == direction end)
    |> Enum.count
  end
end

  """

  def run(args) do
    Application.ensure_all_started(Project.config()[:app])

    repos = Ecto.parse_repo(args)

