Skip to content

Commit

Permalink
adds configure method
Browse files Browse the repository at this point in the history
  • Loading branch information
minibikini committed Feb 11, 2014
1 parent 81e6082 commit 1951a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/AppSpine.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ module.exports = class AppSpine extends EventEmitter2

isDev: -> @getEnv() is 'development'

configure: (env, fn) -> fn() if @getEnv() is env

getEnv: ->
process.env.NODE_ENV or 'development'

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "appspine",
"version": "0.0.1",
"version": "0.0.2",
"description": "node.js application namespace base class",
"keywords": [
"application",
Expand Down

0 comments on commit 1951a9f

Please sign in to comment.