Skip to content

add scm-data-generators and git scm generator #29

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 30, 2016

Conversation

ghedamat
Copy link
Contributor

@ghedamat ghedamat commented Mar 3, 2016

first step in tackling ember-cli-deploy/ember-cli-deploy#305

see
ember-cli-deploy/ember-cli-deploy-redis#56
ember-cli-deploy/ember-cli-deploy-display-revisions#8

this assumes that we're ok in keeping the approach were we "hardcode" the possible "providers" into this plugin.

TODOs:

  • add info to README

@ghedamat ghedamat force-pushed the enrich-revision-data branch 2 times, most recently from 7040f31 to a3aabae Compare March 3, 2016 04:19
@lukemelia
Copy link
Contributor

I wonder if "data collector" would be a better name than "data generator"

return new Promise(function(resolve, reject) {
simpleGit(_this.path).log(function(err, log) {
var info = log.latest;
var sha = info.hash.slice(0, 7);
Copy link
Contributor

Choose a reason for hiding this comment

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

why not preserve the whole hash? Other plugins that want to shorten it can choose to do that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is actually unused :/ should remove it, my linter is failing me here

@lukemelia
Copy link
Contributor

Looks good 👍

@ghedamat ghedamat force-pushed the enrich-revision-data branch from 72e8e86 to fc9e0ba Compare March 29, 2016 18:37
@@ -155,6 +168,36 @@ The file containing your project's version number. Must be a JSON file with a to

*Default:* `package.json`

## Scm Data Generators

Scm Data generators are the strategies used to collect extra information about the revision being deployed. An scm data generator must return an object which contains properties that it deems relevant tothe revision being deployed .
Copy link
Contributor

Choose a reason for hiding this comment

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

s/tothe/to the/

@ghedamat ghedamat force-pushed the enrich-revision-data branch 2 times, most recently from 3e1854d to bbf2f1d Compare March 29, 2016 19:07
@ghedamat
Copy link
Contributor Author

@lukemelia updated

@lukemelia
Copy link
Contributor

LGTM @ghedamat. What's up with the circleci build? And why do we have both travis and circle on this repo?

@ghedamat ghedamat force-pushed the enrich-revision-data branch from bbf2f1d to 6b3b9a1 Compare March 29, 2016 21:52
@ghedamat
Copy link
Contributor Author

@lukemelia fixed the circle thingy by removing it now that we use travis and added tag support to scm generator

@lukemelia lukemelia merged commit 4574e04 into master Mar 30, 2016
@lukemelia lukemelia deleted the enrich-revision-data branch March 30, 2016 20:47
@lukemelia
Copy link
Contributor

👍 Great work @ghedamat!

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

Successfully merging this pull request may close these issues.

3 participants