Permalink
Browse files

Change permissions of .policeconf

  • Loading branch information...
pksunkara committed Nov 30, 2011
1 parent 06c315d commit c8ac3ea717097581a53235a3cf26b70d7583ba08
Showing with 6 additions and 2 deletions.
  1. +4 −1 README.md
  2. +1 −0 lib/police/config.js
  3. +1 −1 package.json
View
@@ -22,7 +22,7 @@ police auth
```
**Note:** We will not save your [github](http://github.com) password anywhere. A token which we acquire during
-the authentication will be used thereafter.
+the authentication will be used thereafter. And it will be saved in a file with permissions `0600`
```sh
# To police your module dependencies
@@ -40,6 +40,9 @@ police flatiron/plates
# To police a local module or package.json file
police -l ~/octonode
police -l ~/octonode/package.json
+
+# To continue checking even though errors are encountered
+police -u flatiron -f
```
The token which we acquied during auth will be stored in `$HOME/.policeconf`. If you want to use another config file
View
@@ -33,6 +33,7 @@ config.load = function () {
winston.silly('Initalizing configuration file'.cyan);
try {
fs.writeFileSync(conf, '{}');
+ fs.chmodSync(conf, 0600);
} catch (err) {
winston.warn('Cannot intialize configuration file.'.red.bold);
throw err;
View
@@ -1,7 +1,7 @@
{
"name": "police",
"description": "policing tool for dependency package versions",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pkumar.github.com)",
"contributors": [
{ "name": "Pavan Kumar Sunkara", "email": "pavan.sss1991@gmail.com" }

0 comments on commit c8ac3ea

Please sign in to comment.