Skip to content

Commit 50d0e00

Browse files
committed
Blank supervisor project
0 parents  commit 50d0e00

7 files changed

+116
-0
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/_build
2+
/cover
3+
/deps
4+
erl_crash.dump
5+
*.ez

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# SidewindersFang
2+
3+
**TODO: Add description**
4+
5+
## Installation
6+
7+
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
8+
9+
1. Add sidewinders_fang to your list of dependencies in `mix.exs`:
10+
11+
def deps do
12+
[{:sidewinders_fang, "~> 0.0.1"}]
13+
end
14+
15+
2. Ensure sidewinders_fang is started before your application:
16+
17+
def application do
18+
[applications: [:sidewinders_fang]]
19+
end
20+

config/config.exs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file is responsible for configuring your application
2+
# and its dependencies with the aid of the Mix.Config module.
3+
use Mix.Config
4+
5+
# This configuration is loaded before any dependency and is restricted
6+
# to this project. If another project depends on this project, this
7+
# file won't be loaded nor affect the parent project. For this reason,
8+
# if you want to provide default values for your application for
9+
# 3rd-party users, it should be done in your "mix.exs" file.
10+
11+
# You can configure for your application as:
12+
#
13+
# config :sidewinders_fang, key: :value
14+
#
15+
# And access this configuration in your application as:
16+
#
17+
# Application.get_env(:sidewinders_fang, :key)
18+
#
19+
# Or configure a 3rd-party app:
20+
#
21+
# config :logger, level: :info
22+
#
23+
24+
# It is also possible to import configuration files, relative to this
25+
# directory. For example, you can emulate configuration per environment
26+
# by uncommenting the line below and defining dev.exs, test.exs and such.
27+
# Configuration from the imported file will override the ones defined
28+
# here (which is why it is important to import them last).
29+
#
30+
# import_config "#{Mix.env}.exs"

lib/sidewinders_fang.ex

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
defmodule SidewindersFang do
2+
use Application
3+
4+
# See http://elixir-lang.org/docs/stable/elixir/Application.html
5+
# for more information on OTP Applications
6+
def start(_type, _args) do
7+
import Supervisor.Spec, warn: false
8+
9+
children = [
10+
# Define workers and child supervisors to be supervised
11+
# worker(SidewindersFang.Worker, [arg1, arg2, arg3]),
12+
]
13+
14+
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
15+
# for other strategies and supported options
16+
opts = [strategy: :one_for_one, name: SidewindersFang.Supervisor]
17+
Supervisor.start_link(children, opts)
18+
end
19+
end

mix.exs

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
defmodule SidewindersFang.Mixfile do
2+
use Mix.Project
3+
4+
def project do
5+
[app: :sidewinders_fang,
6+
version: "0.0.1",
7+
elixir: "~> 1.2",
8+
build_embedded: Mix.env == :prod,
9+
start_permanent: Mix.env == :prod,
10+
deps: deps]
11+
end
12+
13+
# Configuration for the OTP application
14+
#
15+
# Type "mix help compile.app" for more information
16+
def application do
17+
[applications: [:logger],
18+
mod: {SidewindersFang, []}]
19+
end
20+
21+
# Dependencies can be Hex packages:
22+
#
23+
# {:mydep, "~> 0.3.0"}
24+
#
25+
# Or git/path repositories:
26+
#
27+
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
28+
#
29+
# Type "mix help deps" for more examples and options
30+
defp deps do
31+
[]
32+
end
33+
end

test/sidewinders_fang_test.exs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
defmodule SidewindersFangTest do
2+
use ExUnit.Case
3+
doctest SidewindersFang
4+
5+
test "the truth" do
6+
assert 1 + 1 == 2
7+
end
8+
end

test/test_helper.exs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ExUnit.start()

0 commit comments

Comments
 (0)