0.1.5 • Published 9 years ago

sails-generate-githooks v0.1.5

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

sails-generate-githooks

A githooks generator for use with the Sails command-line interface.

Certain generators are installed by default in Sails, but they can be overridden. Other generators create entirely new things. Check the Sails docs for information on installing generator overrides / custom generators and information on building your own generators.

Installation

$ npm install sails-generate-githooks

Usage

On the command line
$ sails generate githooks 
Start deployment
$ forever start githooks.js

Configure

file: config/githooks.conf.js
// GITHooks config file
var post = require('../hooks/post.hook'),
marge = require('../hooks/marge.hook');

module.exports = {
	appPath: "~/apps/hooks",
	user: [],
	hooks: {
		"post": post,
		"marge": marge
	},
	port: 8080
}
Hook example on post back
	module.exports = function (hookParams, hook) {
	// Post hook filter
	hook.do('git', ['pull'], function(){
		hook.do('forever', ['restartall'], function(){
			console.log("POST hook done.");
			//...
		});
	});
}

Development

To get started quickly and see this generator in action, ...

Also see CONTRIBUTING.md for more information on overriding/enhancing existing generators.

Questions?

See FAQ.md.

More Resources

License

MIT © 2014 balderdashy & contributors

As for Sails? It's free and open-source under the MIT License.

image_squidhome@2x.png

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.18

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago