Skip to content

S3 Without the Linter Changes#5

Open
biocross wants to merge 4 commits into
masterfrom
pr/4
Open

S3 Without the Linter Changes#5
biocross wants to merge 4 commits into
masterfrom
pr/4

Conversation

@biocross

Copy link
Copy Markdown
Owner

No description provided.

Comment thread librarian.js
"notes": ""
}
};
// AWS.config.update({region: 'REGION'});

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Remove commented code

Comment thread librarian.js

const currentIP = os.networkInterfaces().en0.find(elm => elm.family == 'IPv4').address;
const currentIP = os.networkInterfaces().en0.find(elm => elm.family === 'IPv4').address;
// const currentIP = "127.0.0.1";// os.networkInterfaces().en0.find(elm => elm.family === 'IPv4').address;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Remove commented code.

Comment thread librarian.js
Bucket: bucketName,
Key: fileName, // File name you want to save as in S3
Body: fileContent,
Acl: "public-read"

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Should we make this ACL configurable?

Comment thread librarian.js
await addBuild(preferences, buildInfo);
printHeader("Build Added Successfully!");
await checkForUpdate(preferences);
if (options.delete_apk.toString() === "1") { fs.unlink(pathToFile, () => { }) }

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

What's this?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

to remove the local build file, if the user wants.

Comment thread librarian.js
.alias('a')
.option('-b, --branch <branch>', 'The branch the build is from')
.option('-n, --notes <notes>', 'Release Notes for the build')
.option('-d, --delete_apk <delete_apk>', 'Release Notes for the build')

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

The argument and comment mismatch. Also, this flag seems to be platform specific (Android)

Comment thread librarian.js
};

program
.command('submitS3 <pathToFile>')

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

How does this new command work. Is the person supposed to call librarian submit, or submitS3?

Instead of duplicating all of the submit code, we can also add a flag to existing submit code to upload to S3? Something like librarian submit --s3

Comment thread setup.js
{
type: 'confirm',
name: 'enable_s3',
message: 'Do you want to enable s3 storage?',

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Can we add some information to the README regarding this new feature?

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.

2 participants