Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various issues with CLI and creating .pem and .crx files #34

Merged
merged 1 commit into from
Jan 15, 2015

Conversation

lepolt
Copy link
Collaborator

@lepolt lepolt commented Dec 17, 2014

If directory is not specified, we'll assume current working directory for all options. If .pem file is not specified, we will create one automatically (like the docs say) and will continue operation. Added a little more error handling.

Fixes
#33
#31

// If a private key file exists, read in the contents
var keyData;
if (fs.existsSync(key) ) {
keyData = fs.readFileSync(key);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer fs. readFile to be used – use es6-promises – on reject (because `e.code === 'ENOENT'), generate a key.

@thom4parisot
Copy link
Owner

Thanks for your contribution @lepoltj :-) you will need to rebase your PR first.

Let me know what you think about my review comments.

@@ -3,3 +3,4 @@ test/*.zip
test/*.xml
node_modules
tmp
.idea
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lepolt
Copy link
Collaborator Author

lepolt commented Dec 18, 2014

Oops, bad rebase. Fixing now.

…me current working directory for all options. If .pem file is not specified, we will create one automatically (like the docs say) and will continue operation. Added a little more error handling. Refactored some of the read key and generate key code to be more async w/ Promises.
@lepolt
Copy link
Collaborator Author

lepolt commented Dec 18, 2014

All clear. Addressed all comments. Refactored the read/write key code to use Promises.

@workmanw
Copy link

workmanw commented Jan 8, 2015

+1. Bump. Anything holding this up?

@snuggs
Copy link

snuggs commented Jan 12, 2015

👍 @workmanw. Anybody?

thom4parisot pushed a commit that referenced this pull request Jan 15, 2015
Fix various issues with CLI and creating .pem and .crx files
@thom4parisot thom4parisot merged commit 8e89a0a into thom4parisot:master Jan 15, 2015
@thom4parisot
Copy link
Owner

Sorry for the delay guys! Winter break + loads of other things to do. Thanks for having pushed this up :-)

@thom4parisot
Copy link
Owner

Published as v2.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants