gastonelhordoy / grunt-rpm

Grunt plugin to create an RPM out of a project for distribution.
MIT License
15 stars 16 forks source link

Allow Release and Target to be set in Gruntfile #3

Closed randylayman closed 10 years ago

randylayman commented 10 years ago

This change adds to more configuration options that can be set in the Gruntfile. Both of these were necessary for my current project.

In the options you can set target, which is then passed to the RPM for the target architecture (noarch, x86_64, etc). If the value isn't set, it defaults to noarch, the current value and what seems like the safest approach.

Also in options you can set the value of release. Before this change, regardless of the value passed the release was always 1. This doesn't play particularly well with installing the RPMs since RPM would think it was already installed. This change keeps the backward intention -- if the value was set to boolean true then the value is 1. If the value is set but isn't boolean true then the value of the release will be used. If the value isn't set at all then the default of SNAPSHOT and timestamp is used.

gastonelhordoy commented 10 years ago

Thanks Randy for your contribution!

randylayman commented 10 years ago

Could you push out a new release to npm with these changes in it?

On Tuesday, March 18, 2014 11:45 PM, Gaston notifications@github.com wrote:

Thanks Randy for your contribution! — Reply to this email directly or view it on GitHub.

gastonelhordoy commented 10 years ago

Done! Version 0.1.3 is already published to NPM.