Skip to content
This repository has been archived by the owner on Aug 1, 2018. It is now read-only.

Commit

Permalink
Cache: Changed to home directory in prod
Browse files Browse the repository at this point in the history
User's home directory will be used in production
environment for caching data
Fixes: #24

Signed-Off-By: Progyan Bhattacharya <[email protected]>
  • Loading branch information
0xTheProDev committed May 16, 2017
1 parent a1c4843 commit 3bdb0c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
sudo: required
sudo: false
node_js:
- "6"
os: linux
Expand All @@ -20,5 +20,6 @@ branches:
install:
- npm install --ignore-scripts
- npm link
- export NODEJS_ENV=development
script:
- npm test
23 changes: 12 additions & 11 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@

'use strict';

const argv = process.argv,
curDir = process.cwd(),
fs = require('fs'),
path = require('path'),
GHT = require('./lib/ght.js'),
ver = require('./package.json').version
const argv = process.argv,
curDir = process.cwd(),
fs = require('fs'),
path = require('path'),
GHT = require('./lib/ght.js'),
ver = require('./package.json').version,

var CONFIG = path.resolve(__dirname, '.ghb'),
FILE = curDir.replace(/[|&:;$%@"<>()+,\/\\\s]/g, '-'),
confFile = (CONFIG + '/' + FILE)
const helpStr =
DIR = process.env.NODEJS_ENV == 'development' ? __dirname : '~',
CONFIG = path.resolve(DIR, '.ghb'),
FILE = curDir.replace(/[|&:;$%@"<>()+,\/\\\s]/g, '-'),

helpStr =
`Usage: ghb [options] [parameter]
init : Initialize GHT in your repo
Required parameter: [url]
Expand All @@ -45,7 +46,7 @@ const helpStr =
Optional parameter: [open / closed / all / id={ID} / label={LABELS}]
pulls : Fetch and display pull requests
Optional parameter: [open / closed / all / id={ID} / label={LABELS}]`,
infoStr =
infoStr =
`Invalid number of argumnet passed
ghb -h or ghb --help to see usage details.`

Expand Down

0 comments on commit 3bdb0c5

Please sign in to comment.