module.exports = function (grunt) {
	'use strict';
	// Project configuration
	grunt.initConfig({
		pkg:    grunt.file.readJSON('package.json'),
		gitPull: {
<%			 if (dependencies) {
%>			dependencies: {
				repos: [
					{
						path: [],
						dir: 'deps',
						repo: '<%= dependencies %>'
					}
				]
			}<% if ( repos ) { %>,
<% } }
			if ( repos ) {
%>			themes: {
				repos: [
<%					var i, length;
					for (i = 0, length = repos.theme.length; i < length; i++) {
%>					{
						path: ['src', 'themes'],
						repo: '<%= repos.theme[i] %>'
					}<% if((i + 1) !== length) { %>,<% } %>
<% } %>				]
			},
			plugins: {
				repos: [
<%					for (i = 0, length = repos.plugin.length; i < length; i++) {
%>					{
						path: ['src', 'plugins'],
						repo: '<%= repos.plugin[i] %>'
					}<% if((i + 1) !== length) { %>,<% } %>
<% } %>				]
			}<% } %>
		},
		vagrant_commands: {
			restart: {
				commands: [
					['up'],
					['halt'],
					['up', '--provision']
				]
			},
		}
	});

	// Load tasks
	require('load-grunt-tasks')(grunt);

	// Register tasks
	grunt.registerTask('default', ['gitPull', 'vagrant_commands:restart']);
	grunt.registerTask('provision', ['vagrant_commands:restart']);

	grunt.util.linefeed = '\n';
};

@@ -974,224 +974,994 @@
 %09%09%09%7D
-,%0A%09%09%7D%0A%09%7D);%0A%0A%09// Load tasks%0A%09require('load-grunt-tasks')(grunt);%0A%0A%09// Register tasks%0A%09grunt.registerTask('default', %5B'gitPull', 'vagrant_commands:restart'%5D);%0A%09grunt.registerTask('provision', %5B'vagrant_commands:restart
+%0A%09%09%09import_db: %7B%0A%09%09%09%09commands: %5B%0A%09%09%09%09%09%5B'ssh', '--command=cd /var/sites/%3C%25= site.id %25%3E && bash scripts/import-sql.sh'%5D%0A%09%09%09%09%5D%0A%09%09%09%7D,%0A%09%09%09install_plugins: %7B%0A%09%09%09%09commands: %5B%0A%09%09%09%09%09%5B'ssh', '--command=cd /var/sites/%3C%25= site.id %25%3E && bash scripts/plugins.sh'%5D%0A%09%09%09%09%5D%0A%09%09%09%7D,%0A%09%09%09symlinks: %7B%0A%09%09%09%09commands: %5B%0A%09%09%09%09%09%5B'ssh', '--command=cd /var/sites/%3C%25= site.id %25%3E && bash scripts/clear-links.sh'%5D,%0A%09%09%09%09%09%5B'ssh', '--command=cd /var/sites/%3C%25= site.id %25%3E && bash scripts/dependencies.sh'%5D,%0A%09%09%09%09%09%5B'ssh', '--command=cd /var/sites/%3C%25= site.id %25%3E && bash scripts/src.sh'%5D%0A%09%09%09%09%5D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D);%0A%0A%09// Load tasks%0A%09require('load-grunt-tasks')(grunt);%0A%0A%09// Register tasks%0A%09grunt.registerTask('default', %5B'gitPull', 'vagrant_commands:restart'%5D);%0A%09grunt.registerTask('provision', %5B'vagrant_commands:restart'%5D);%0A%09grunt.registerTask('db', %5B'vagrant_commands:import_db'%5D);%0A%09grunt.registerTask('plugins', %5B'vagrant_commands:install_plugins'%5D);%0A%09grunt.registerTask('relink', %5B'gitPull:dependencies', 'vagrant_commands:symlinks
 '%5D);

Allow access to some scripts from grunt