-
Notifications
You must be signed in to change notification settings - Fork 58
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
Conversation
7040f31
to
a3aabae
Compare
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
5a8ab1b
to
72e8e86
Compare
Looks good 👍 |
72e8e86
to
fc9e0ba
Compare
@@ -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 . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/tothe/to the/
3e1854d
to
bbf2f1d
Compare
@lukemelia updated |
LGTM @ghedamat. What's up with the circleci build? And why do we have both travis and circle on this repo? |
bbf2f1d
to
6b3b9a1
Compare
@lukemelia fixed the circle thingy by removing it now that we use travis and added tag support to scm generator |
👍 Great work @ghedamat! |
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: