     # { :foobar, "0.1", git: "https://github.com/elixir-lang/foobar.git" }
     defp deps do
       []
+    end
+  end
+  """
+
+  embed_template :mixfile_umbrella, """
+  defmodule <%= @mod %>.Mixfile do
+    use Mix.Project
+
+    def project do
+      [ app: :<%= @app %>,
+        apps_path: "apps" ]
     end
   end
   """

    create_directory "test"
    create_file "test/test_helper.exs", test_helper_template(assigns)
    create_file "test/#{app}_test.exs", test_lib_template(assigns)
  end

  defp check_project_name!(name) do

        name = Path.basename(Path.expand(path))
        check_project_name!(name)
        File.mkdir_p!(path)

        File.cd! path, fn ->
          if opts[:umbrella] do
            do_generate_umbrella(name, opts)
          else
            do_generate(name, opts)
          end
        end
    end
  end

