From 3d9fc28d82da84cac2f91e3eb2fe79d8a921e0de Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Wed, 24 Jul 2013 13:12:47 +0300 Subject: [PATCH] changed cgr-rater tool name to cgr-engine --- build.sh | 2 +- .../cgr-rater.go => cgr-engine/cgr-engine.go} | 2 +- .../rater_test.go => cgr-engine/engine_test.go} | 0 cmd/{cgr-rater => cgr-engine}/registration.go | 2 +- test.sh | 12 ++++++------ 5 files changed, 9 insertions(+), 9 deletions(-) rename cmd/{cgr-rater/cgr-rater.go => cgr-engine/cgr-engine.go} (99%) rename cmd/{cgr-rater/rater_test.go => cgr-engine/engine_test.go} (100%) rename cmd/{cgr-rater => cgr-engine}/registration.go (98%) diff --git a/build.sh b/build.sh index 6031fc6fa..006496d11 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #! /usr/bin/env sh -go install github.com/cgrates/cgrates/cmd/cgr-rater +go install github.com/cgrates/cgrates/cmd/cgr-engine cr=$? go install github.com/cgrates/cgrates/cmd/cgr-loader cl=$? diff --git a/cmd/cgr-rater/cgr-rater.go b/cmd/cgr-engine/cgr-engine.go similarity index 99% rename from cmd/cgr-rater/cgr-rater.go rename to cmd/cgr-engine/cgr-engine.go index 92a317344..b3140e944 100644 --- a/cmd/cgr-rater/cgr-rater.go +++ b/cmd/cgr-engine/cgr-engine.go @@ -26,8 +26,8 @@ import ( "github.com/cgrates/cgrates/balancer2go" "github.com/cgrates/cgrates/cdrs" "github.com/cgrates/cgrates/config" + "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/mediator" - "github.com/cgrates/cgrates/rater" "github.com/cgrates/cgrates/scheduler" "github.com/cgrates/cgrates/sessionmanager" "github.com/cgrates/cgrates/utils" diff --git a/cmd/cgr-rater/rater_test.go b/cmd/cgr-engine/engine_test.go similarity index 100% rename from cmd/cgr-rater/rater_test.go rename to cmd/cgr-engine/engine_test.go diff --git a/cmd/cgr-rater/registration.go b/cmd/cgr-engine/registration.go similarity index 98% rename from cmd/cgr-rater/registration.go rename to cmd/cgr-engine/registration.go index b0d1e0a90..137a2f7ae 100644 --- a/cmd/cgr-rater/registration.go +++ b/cmd/cgr-engine/registration.go @@ -20,7 +20,7 @@ package main import ( "fmt" - "github.com/cgrates/cgrates/rater" + "github.com/cgrates/cgrates/engine" "github.com/cgrates/cgrates/scheduler" "net/rpc" "os" diff --git a/test.sh b/test.sh index c08cc8ad8..fd93e32f1 100755 --- a/test.sh +++ b/test.sh @@ -1,21 +1,21 @@ #! /usr/bin/env sh -go test -i github.com/cgrates/cgrates/rater +go test -i github.com/cgrates/cgrates/engine go test -i github.com/cgrates/cgrates/sessionmanager go test -i github.com/cgrates/cgrates/config -go test -i github.com/cgrates/cgrates/cmd/cgr-rater +go test -i github.com/cgrates/cgrates/cmd/cgr-engine go test -i github.com/cgrates/cgrates/mediator go test -i github.com/cgrates/fsock go test -i github.com/cgrates/cgrates/cdrs go test -i github.com/cgrates/cgrates/utils -go test github.com/cgrates/cgrates/rater -ts=$? +go test github.com/cgrates/cgrates/engine +en=$? go test github.com/cgrates/cgrates/sessionmanager sm=$? go test github.com/cgrates/cgrates/config cfg=$? -go test github.com/cgrates/cgrates/cmd/cgr-rater +go test github.com/cgrates/cgrates/cmd/cgr-engine cr=$? go test github.com/cgrates/cgrates/mediator md=$? @@ -26,4 +26,4 @@ ut=$? go test github.com/cgrates//fsock fs=$? -exit $ts && $sm && $cfg && $bl && $cr && $md && $cdr && $fs && $ut +exit $en && $sm && $cfg && $bl && $cr && $md && $cdr && $fs && $ut