From d0bccb575e73a44f0aceb6c704740ffaec0fa224 Mon Sep 17 00:00:00 2001 From: Joseph Kenneth Date: Mon, 1 Jul 2013 10:09:51 -0700 Subject: [PATCH] Add new sample service and a dependency for testing purposes --- sample/app/domain/auth/services/doSomething.coffee | 7 +++++++ sample/app/domain/auth/services/helpDoSomething.coffee | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 sample/app/domain/auth/services/doSomething.coffee create mode 100644 sample/app/domain/auth/services/helpDoSomething.coffee diff --git a/sample/app/domain/auth/services/doSomething.coffee b/sample/app/domain/auth/services/doSomething.coffee new file mode 100644 index 0000000..5e7c92a --- /dev/null +++ b/sample/app/domain/auth/services/doSomething.coffee @@ -0,0 +1,7 @@ +module.exports = + dependencies: + services: ['helpDoSomething'] + required: [] + service: (args, done, deps) -> + {services} = deps + services?.helpDoSomething args, done diff --git a/sample/app/domain/auth/services/helpDoSomething.coffee b/sample/app/domain/auth/services/helpDoSomething.coffee new file mode 100644 index 0000000..ad39c0c --- /dev/null +++ b/sample/app/domain/auth/services/helpDoSomething.coffee @@ -0,0 +1,2 @@ +module.exports = (args, done) -> + done null, {result: 'it worked'} \ No newline at end of file