Browse files

restructure project to use rebar

  • Loading branch information...
1 parent a53730c commit b28867629e76f14a7218c4c6c247dc24e3cfa25f @RJ RJ committed Oct 27, 2011
View
5 .gitignore
@@ -0,0 +1,5 @@
+*~
+deps/
+*.log
+*.dump
+ebin/
View
30 README
@@ -1,27 +1,13 @@
A client for Elastic Search in Erlang.
+======================================
-Install:
+* rebar
+* uses lhttpc http library
-Easiest:
+QUICKSTART
+----------
-Download and install faxien from erlware.org
+$ rebar get-deps
+$ rebar compile
+$ ./start-dev.sh
-faxien ir sinan
-faxien ia crypto
-faxien ia ssl
-faxien ia lhttpc
-
-In your erlastic_search source dir:
-
-sinan dist
-
-Works:
-
-Create index
-Add doc
-Search
-Get doc
-
-TODO
-
-* Lots :)
View
14 _build.cfg
@@ -1,14 +0,0 @@
-project : {
- name : erlastic_search
- vsn : "0.2.0.0"
-},
-
-build_dir : _build,
-
-ignore_dirs : ["_",
- "."],
-
-ignore_apps : [],
-
-
-
View
15 bin/erlastic_search
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-PROG=$0
-PROG_DIR=$(cd `dirname $0`; pwd)
-test -h $0 && PROG=$(readlink $0)
-export ROOTDIR=$(dirname $PROG_DIR)
-
-#### Fill in values for these variables ####
-REL_NAME=erlastic_search
-REL_VSN=0.2.0.0
-ERTS_VSN=5.7.4
-INVOCATION_SUFFIX="-prefix $ROOTDIR"
-###########################################
-
-$ROOTDIR/bin/erlware_release_start_helper $REL_NAME $REL_VSN $ERTS_VSN sys.config $INVOCATION_SUFFIX
View
26 bin/erlware_release_start_helper
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-if [ $# -lt 3 ];then
- echo "usage $0 <rel-name> <rel-vsn> <erts-vsn> <config-file-name | no_config> [extra-args]"
- exit 1
-fi
-
-REL_NAME=$1; shift
-REL_VSN=$1; shift
-ERTS_VSN=$1; shift
-CONFIG_FILE_NAME=$1
-
-ERTS_DIR=$ROOTDIR/erts-$ERTS_VSN
-export BINDIR=$ERTS_DIR/bin
-export EMU=beam
-export PROGNAME=erl
-export LD_LIBRARY_PATH=$ERTS_DIR/lib
-
-export REL_DIR=$ROOTDIR/releases/$REL_NAME-$REL_VSN
-
-if [ "$CONFIG_FILE_NAME" = "no_config" ];then
- $BINDIR/erlexec -boot $REL_DIR/$REL_NAME $@
-else
- shift
- $BINDIR/erlexec -config $REL_DIR/$CONFIG_FILE_NAME -boot $REL_DIR/$REL_NAME $@
-fi
View
0 ...lastic_search/include/erlastic_search.hrl → include/erlastic_search.hrl
File renamed without changes.
View
4 lib/erlastic_search/doc/overview.edoc
@@ -1,4 +0,0 @@
-@author Tristan Sloughter <kungfooguru@gmail.com>
-@copyright 2010 Tristan Sloughter
-@version {@vsn}
-
View
10 rebar.config
@@ -0,0 +1,10 @@
+
+{erl_opts, [debug_info]}.
+
+{require_otp_vsn, "R14"}.
+
+{deps_dir, ["deps"]}.
+
+{deps, [
+ {lhttpc, ".*", {git, "https://github.com/esl/lhttpc.git", "master"}}
+]}.
View
7 lib/erlastic_search/ebin/erlastic_search.app → src/erlastic_search.app.src
@@ -3,12 +3,7 @@
{application, erlastic_search,
[{description, "An Erlang app for communicating with Elastic Search's rest interface."},
{vsn, "0.2.0"},
- {modules, [erlastic_search,
- erls_resource,
- erls_utils,
-
- erls_query_constructor,
- erls_mochijson2]},
+ {modules, []},
{registered,[]},
{applications, [kernel, stdlib, sasl, gas, ssl, crypto, lhttpc]},
{start_phases, []}]}.
View
0 lib/erlastic_search/src/erlastic_search.erl → src/erlastic_search.erl
File renamed without changes.
View
0 lib/erlastic_search/src/erls_mochijson2.erl → src/erls_mochijson2.erl
File renamed without changes.
View
0 ...tic_search/src/erls_query_constructor.erl → src/erls_query_constructor.erl
File renamed without changes.
View
0 lib/erlastic_search/src/erls_resource.erl → src/erls_resource.erl
File renamed without changes.
View
0 lib/erlastic_search/src/erls_utils.erl → src/erls_utils.erl
File renamed without changes.
View
4 start-dev.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+cd `dirname $0`
+exec erl -name erlastic@127.0.0.1 -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -config sys.config -s erlastic_search
+
View
0 config/sys.config → sys.config
File renamed without changes.

0 comments on commit b288676

Please sign in to comment.