Skip to content

Commit

Permalink
empty project
Browse files Browse the repository at this point in the history
  • Loading branch information
meadsteve committed Feb 28, 2015
0 parents commit 3287e3b
Show file tree
Hide file tree
Showing 11 changed files with 99 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
/_build
/deps
erl_crash.dump
*.ez
/.vagrant/
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
WhiteBread
==========

** TODO: Add description **
17 changes: 17 additions & 0 deletions Vagrantfile
@@ -0,0 +1,17 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.box = "ubuntu/trusty64"
config.vm.provision :shell, :path => "provisioning/git.sh"
config.vm.provision :shell, :path => "provisioning/erlang.sh"
config.vm.provision :shell, :path => "provisioning/elixir.sh"

config.vm.network "forwarded_port", guest: 9091, host: 9091
config.vm.network "forwarded_port", guest: 9092, host: 9092

end
24 changes: 24 additions & 0 deletions config/config.exs
@@ -0,0 +1,24 @@
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config

# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for third-
# party users, it should be done in your mix.exs file.

# Sample configuration:
#
# config :logger, :console,
# level: :info,
# format: "$date $time [$level] $metadata$message\n",
# metadata: [:user_id]

# It is also possible to import configuration files, relative to this
# directory. For example, you can emulate configuration per environment
# by uncommenting the line below and defining dev.exs, test.exs and such.
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
# import_config "#{Mix.env}.exs"
2 changes: 2 additions & 0 deletions lib/white_bread.ex
@@ -0,0 +1,2 @@
defmodule WhiteBread do
end
30 changes: 30 additions & 0 deletions mix.exs
@@ -0,0 +1,30 @@
defmodule WhiteBread.Mixfile do
use Mix.Project

def project do
[app: :white_bread,
version: "0.0.1",
elixir: "~> 1.0",
deps: deps]
end

# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end

# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type `mix help deps` for more examples and options
defp deps do
[]
end
end
2 changes: 2 additions & 0 deletions provisioning/elixir.sh
@@ -0,0 +1,2 @@
#!/bin/bash
sudo apt-get install elixir -y
5 changes: 5 additions & 0 deletions provisioning/erlang.sh
@@ -0,0 +1,5 @@
#!/bin/bash
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install erlang -y
2 changes: 2 additions & 0 deletions provisioning/git.sh
@@ -0,0 +1,2 @@
#!/bin/bash
sudo apt-get install git -y
1 change: 1 addition & 0 deletions test/test_helper.exs
@@ -0,0 +1 @@
ExUnit.start()
7 changes: 7 additions & 0 deletions test/white_bread_test.exs
@@ -0,0 +1,7 @@
defmodule WhiteBreadTest do
use ExUnit.Case

test "the truth" do
assert 1 + 1 == 2
end
end

0 comments on commit 3287e3b

Please sign in to comment.