bonethug 0.0.73 → 0.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. data/README.md +18 -63
  2. data/TODO.txt +3 -2
  3. data/config/deploy.rb +31 -30
  4. data/lib/bonethug/cli.rb +64 -17
  5. data/lib/bonethug/installer.rb +3 -3
  6. data/lib/bonethug/syncer.rb +113 -0
  7. data/lib/bonethug/utils.rb +23 -23
  8. data/lib/bonethug/version.rb +2 -2
  9. data/lib/bonethug.rb +1 -0
  10. data/skel/project_types/drupal/composer.json +359 -20
  11. data/skel/project_types/drupal/drupal-console +3 -0
  12. data/skel/project_types/drupal/lib/boris.php +7 -0
  13. data/skel/project_types/drupal/lib/drupal_bootstrap.php +13 -0
  14. data/skel/project_types/drupal/lib/drupal_flush_cache.php +5 -0
  15. data/skel/project_types/drupal6/composer.json +359 -20
  16. data/skel/project_types/drupal6/drupal-console +3 -0
  17. data/skel/project_types/drupal6/lib/boris.php +7 -0
  18. data/skel/project_types/drupal6/lib/drupal_bootstrap.php +13 -0
  19. data/skel/project_types/drupal6/lib/drupal_flush_cache.php +5 -0
  20. data/skel/project_types/drupal7/composer.json +347 -8
  21. data/skel/project_types/drupal7/drupal-console +3 -0
  22. data/skel/project_types/drupal7/lib/boris.php +7 -0
  23. data/skel/project_types/drupal7/lib/drupal_bootstrap.php +13 -0
  24. data/skel/project_types/drupal7/lib/drupal_flush_cache.php +5 -0
  25. data/skel/project_types/drupal8/composer.json +359 -20
  26. data/skel/project_types/drupal8/drupal-console +3 -0
  27. data/skel/project_types/drupal8/lib/boris.php +7 -0
  28. data/skel/project_types/drupal8/lib/drupal_bootstrap.php +13 -0
  29. data/skel/project_types/drupal8/lib/drupal_flush_cache.php +5 -0
  30. data/skel/project_types/silverstripe3/bower.json +7 -5
  31. data/skel/project_types/silverstripe3/composer.json +2 -1
  32. data/skel/project_types/silverstripe3/lib/boris.php +7 -0
  33. data/skel/project_types/silverstripe3/lib/ss_bootstrap.php +123 -0
  34. data/skel/project_types/silverstripe3/lib/ss_loadconf.php +104 -104
  35. data/skel/project_types/silverstripe3/public/.htaccess +1 -1
  36. data/skel/project_types/silverstripe3/public/project/_config.php +17 -17
  37. data/skel/project_types/silverstripe3/public/project/code/DataObjects/.gitkeep +0 -0
  38. data/skel/project_types/silverstripe3/public/themes/project/scss/_base.scss +58 -0
  39. data/skel/project_types/silverstripe3/public/themes/project/scss/_colours.scss +12 -0
  40. data/skel/project_types/silverstripe3/public/themes/project/scss/_functions.scss +18 -14
  41. data/skel/project_types/silverstripe3/public/themes/project/scss/_mixins.scss +17 -9
  42. data/skel/project_types/silverstripe3/public/themes/project/scss/_vars.scss +5 -2
  43. data/skel/project_types/silverstripe3/public/themes/project/scss/main.scss +26 -3
  44. data/skel/project_types/silverstripe3/public/themes/project/scss/typography.scss +28 -26
  45. data/skel/project_types/silverstripe3/ss-console +3 -0
  46. data/skel/skel.yml +39 -24
  47. metadata +27 -8
  48. data/config/syncer.rb +0 -101
  49. data/skel/project_types/drupal6/lib/flush_drupal_cache.php +0 -15
  50. data/skel/project_types/drupal7/lib/flush_drupal_cache.php +0 -15
  51. data/skel/project_types/drupal8/lib/flush_drupal_cache.php +0 -11
@@ -1,21 +1,360 @@
1
- {
2
- "name": "bonethug/drupal7-skel",
3
- "repositories": [
4
- {
5
- "type": "vcs",
6
- "url": "git@github.com:azt3k/drupal.git"
7
- }
8
- ],
9
- "require": {
10
- "symfony/yaml" : "2.3.*@dev",
11
- "drush/drush" : "dev-master",
12
- "thecodingmachine/drupal" : "7.*@dev"
13
- },
14
- "extra": {
15
- "installer-paths": {
16
- "vendor": [],
17
- "public": [],
18
- "public/vendor/{$name}": []
19
- }
20
- }
1
+ {
2
+ "name": "bonethug/drupal7-skel",
3
+ "repositories": [
4
+ {
5
+ "type": "package",
6
+ "package": {
7
+ "name": "drupal/drupal",
8
+ "type": "non-destructive-archive-installer",
9
+ "version": "7.26",
10
+ "dist": {
11
+ "url": "http://ftp.drupal.org/files/projects/drupal-7.26.zip",
12
+ "type": "zip"
13
+ },
14
+ "require": {
15
+ "azt3k/non-destructive-archive-installer" : "*"
16
+ },
17
+ "extra": {
18
+ "omit-first-directory": "true"
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "type": "package",
24
+ "package": {
25
+ "name": "drupal/drupal-ckeditor",
26
+ "type": "drupal-module",
27
+ "version": "7.1.13",
28
+ "dist": {
29
+ "url": "http://ftp.drupal.org/files/projects/ckeditor-7.x-1.13.zip",
30
+ "type": "zip"
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "type": "package",
36
+ "package": {
37
+ "name": "ckeditor/ckeditor",
38
+ "type": "drupal-module",
39
+ "version": "4.2.2",
40
+ "dist": {
41
+ "url": "http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.2.2/ckeditor_4.2.2_full.zip",
42
+ "type": "zip"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "type": "package",
48
+ "package": {
49
+ "name": "drupal/entity",
50
+ "type": "drupal-module",
51
+ "version": "7.1.4",
52
+ "dist": {
53
+ "url": "http://ftp.drupal.org/files/projects/entity-7.x-1.4.zip",
54
+ "type": "zip"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "type": "package",
60
+ "package": {
61
+ "name": "drupal/jquery-update",
62
+ "type": "drupal-module",
63
+ "version": "7.2.0.1",
64
+ "dist": {
65
+ "url": "http://ftp.drupal.org/files/projects/jquery_update-7.x-2.x-dev.zip",
66
+ "type": "zip"
67
+ }
68
+ }
69
+ },
70
+ {
71
+ "type": "package",
72
+ "package": {
73
+ "name": "drupal/imce",
74
+ "type": "drupal-module",
75
+ "version": "7.1.8",
76
+ "dist": {
77
+ "url": "http://ftp.drupal.org/files/projects/imce-7.x-1.8.zip",
78
+ "type": "zip"
79
+ }
80
+ }
81
+ },
82
+ {
83
+ "type": "package",
84
+ "package": {
85
+ "name": "drupal/date",
86
+ "type": "drupal-module",
87
+ "version": "7.2.7",
88
+ "dist": {
89
+ "url": "http://ftp.drupal.org/files/projects/date-7.x-2.7.zip",
90
+ "type": "zip"
91
+ }
92
+ }
93
+ },
94
+ {
95
+ "type": "package",
96
+ "package": {
97
+ "name": "drupal/entityreference",
98
+ "type": "drupal-module",
99
+ "version": "7.1.1",
100
+ "dist": {
101
+ "url": "http://ftp.drupal.org/files/projects/entityreference-7.x-1.1.zip",
102
+ "type": "zip"
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "type": "package",
108
+ "package": {
109
+ "name": "drupal/entityreference-autocomplete",
110
+ "type": "drupal-module",
111
+ "version": "7.1.4",
112
+ "dist": {
113
+ "url": "http://ftp.drupal.org/files/projects/entityreference_autocomplete-7.x-1.4.zip",
114
+ "type": "zip"
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "type": "package",
120
+ "package": {
121
+ "name": "drupal/ctools",
122
+ "type": "drupal-module",
123
+ "version": "7.1.4",
124
+ "dist": {
125
+ "url": "http://ftp.drupal.org/files/projects/ctools-7.x-1.4.zip",
126
+ "type": "zip"
127
+ }
128
+ }
129
+ },
130
+ {
131
+ "type": "package",
132
+ "package": {
133
+ "name": "drupal/inline-entity-form",
134
+ "type": "drupal-module",
135
+ "version": "7.1.3",
136
+ "dist": {
137
+ "url": "http://ftp.drupal.org/files/projects/inline_entity_form-7.x-1.3.zip",
138
+ "type": "zip"
139
+ }
140
+ }
141
+ },
142
+ {
143
+ "type": "package",
144
+ "package": {
145
+ "name": "drupal/cer",
146
+ "type": "drupal-module",
147
+ "version": "7.2.0.2",
148
+ "dist": {
149
+ "url": "http://ftp.drupal.org/files/projects/cer-7.x-2.x-dev.zip",
150
+ "type": "zip"
151
+ }
152
+ }
153
+ },
154
+ {
155
+ "type": "package",
156
+ "package": {
157
+ "name": "drupal/smtp",
158
+ "type": "drupal-module",
159
+ "version": "7.1.0",
160
+ "dist": {
161
+ "url": "http://ftp.drupal.org/files/projects/smtp-7.x-1.0.zip",
162
+ "type": "zip"
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "type": "package",
168
+ "package": {
169
+ "name": "drupal/metatag",
170
+ "type": "drupal-module",
171
+ "version": "7.1.0.9",
172
+ "dist": {
173
+ "url": "http://ftp.drupal.org/files/projects/metatag-7.x-1.0-beta9.zip",
174
+ "type": "zip"
175
+ }
176
+ }
177
+ },
178
+ {
179
+ "type": "package",
180
+ "package": {
181
+ "name": "drupal/xmlsitemap",
182
+ "type": "drupal-module",
183
+ "version": "7.2.0",
184
+ "dist": {
185
+ "url": "http://ftp.drupal.org/files/projects/xmlsitemap-7.x-2.0.zip",
186
+ "type": "zip"
187
+ }
188
+ }
189
+ },
190
+ {
191
+ "type": "package",
192
+ "package": {
193
+ "name": "drupal/datepicker",
194
+ "type": "drupal-module",
195
+ "version": "7.1.0",
196
+ "dist": {
197
+ "url": "http://ftp.drupal.org/files/projects/datepicker-7.x-1.0.zip",
198
+ "type": "zip"
199
+ }
200
+ }
201
+ },
202
+ {
203
+ "type": "package",
204
+ "package": {
205
+ "name": "drupal/token",
206
+ "type": "drupal-module",
207
+ "version": "7.1.5",
208
+ "dist": {
209
+ "url": "http://ftp.drupal.org/files/projects/token-7.x-1.5.zip",
210
+ "type": "zip"
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "type": "package",
216
+ "package": {
217
+ "name": "drupal/ckeditor-link",
218
+ "type": "drupal-module",
219
+ "version": "7.2.3",
220
+ "dist": {
221
+ "url": "http://ftp.drupal.org/files/projects/ckeditor_link-7.x-2.3.zip",
222
+ "type": "zip"
223
+ }
224
+ }
225
+ },
226
+ {
227
+ "type": "package",
228
+ "package": {
229
+ "name": "drupal/pathauto",
230
+ "type": "drupal-module",
231
+ "version": "7.1.2",
232
+ "dist": {
233
+ "url": "http://ftp.drupal.org/files/projects/pathauto-7.x-1.2.zip",
234
+ "type": "zip"
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "type": "package",
240
+ "package": {
241
+ "name": "drupal/inline-entity-form",
242
+ "type": "drupal-module",
243
+ "version": "7.1.5",
244
+ "dist": {
245
+ "url": "http://ftp.drupal.org/files/projects/inline_entity_form-7.x-1.5.zip",
246
+ "type": "zip"
247
+ }
248
+ }
249
+ },
250
+ {
251
+ "type": "package",
252
+ "package": {
253
+ "name": "drupal/media",
254
+ "type": "drupal-module",
255
+ "version": "7.1.4",
256
+ "dist": {
257
+ "url": "http://ftp.drupal.org/files/projects/media-7.x-1.4.zip",
258
+ "type": "zip"
259
+ }
260
+ }
261
+ },
262
+ {
263
+ "type" : "package",
264
+ "package": {
265
+ "name": "drupal/menufield",
266
+ "type": "drupal-module",
267
+ "version": "7.1",
268
+ "dist": {
269
+ "url": "http://ftp.drupal.org/files/projects/menufield-7.x-1.x-dev.zip",
270
+ "type": "zip"
271
+ }
272
+ }
273
+ },
274
+ {
275
+ "type" : "package",
276
+ "package": {
277
+ "name": "drupal/minify",
278
+ "type": "drupal-module",
279
+ "version": "7.1.0",
280
+ "dist": {
281
+ "url": "http://ftp.drupal.org/files/projects/minify-7.x-1.0.zip",
282
+ "type": "zip"
283
+ }
284
+ }
285
+ }
286
+ ],
287
+ "require": {
288
+ "php" : ">=5.3.0",
289
+ "composer/installers" : ">=1.0.9",
290
+ "azt3k/non-destructive-archive-installer" : "dev-master",
291
+ "symfony/yaml" : "dev-master",
292
+ "drush/drush" : "6.2.0",
293
+ "drupal/drupal" : "7.26",
294
+ "drupal/entity" : "7.1.4",
295
+ "drupal/drupal-ckeditor" : "7.1.13",
296
+ "drupal/jquery-update" : "7.2.0.1",
297
+ "drupal/imce" : "7.1.8",
298
+ "drupal/date" : "7.2.7",
299
+ "drupal/entityreference" : "7.1.1",
300
+ "drupal/entityreference-autocomplete" : "7.1.4",
301
+ "drupal/ctools" : "7.1.4",
302
+ "drupal/cer" : "7.2.0.2",
303
+ "drupal/smtp" : "7.1.0",
304
+ "drupal/metatag" : "7.1.0.9",
305
+ "drupal/xmlsitemap" : "7.2.0",
306
+ "drupal/datepicker" : "7.1.0",
307
+ "drupal/token" : "7.1.5",
308
+ "drupal/ckeditor-link" : "7.2.3",
309
+ "drupal/inline-entity-form" : "7.1.5",
310
+ "drupal/media" : "7.1.4",
311
+ "drupal/menufield" : "7.1",
312
+ "drupal/minify" : "7.1.0",
313
+ "drupal/pathauto" : "7.1.2",
314
+ "ckeditor/ckeditor" : "4.2.2",
315
+ "raveren/kint" : "dev-master",
316
+ "d11wtq/boris" : "dev-master"
317
+ },
318
+ "extra": {
319
+ "installer-paths": {
320
+ "public/sites/all/modules/{$name}": [
321
+ "drupal/cer",
322
+ "drupal/drupal-ckeditor",
323
+ "drupal/entity",
324
+ "drupal/jquery-update",
325
+ "drupal/imce",
326
+ "drupal/date",
327
+ "drupal/entityreference",
328
+ "drupal/entityreference-autocomplete",
329
+ "drupal/ctools",
330
+ "drupal/inline-entity-form",
331
+ "drupal/smtp",
332
+ "drupal/metatag",
333
+ "drupal/datepicker",
334
+ "drupal/xmlsitemap",
335
+ "drupal/token",
336
+ "drupal/ckeditor-link",
337
+ "drupal/media",
338
+ "drupal/menufield",
339
+ "drupal/pathauto",
340
+ "drupal/minify"
341
+ ],
342
+ "public/sites/all/libraries/{$name}" : [
343
+ "ckeditor/ckeditor"
344
+ ],
345
+ "public": [
346
+ "drupal/drupal"
347
+ ]
348
+ }
349
+ },
350
+ "scripts": {
351
+ "post-update-cmd": [
352
+ "cp -rp vendor/drupal/drupal/. public/",
353
+ "rm -rf public/.gitignore"
354
+ ],
355
+ "post-install-cmd": [
356
+ "cp -rp vendor/drupal/drupal/. public/",
357
+ "rm -rf public/.gitignore"
358
+ ]
359
+ }
21
360
  }
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ export APPLICATION_ENV=$1 && php lib/boris.php
@@ -0,0 +1,7 @@
1
+ <?php
2
+
3
+ require realpath(__DIR__ . '/../vendor/autoload.php');
4
+ require 'drupal_bootstrap.php';
5
+
6
+ $boris = new \Boris\Boris('drupal> ');
7
+ $boris->start();
@@ -0,0 +1,13 @@
1
+ <?php
2
+
3
+ $pub_dir = realpath(__DIR__ . '/../public');
4
+ chdir($pub_dir);
5
+ define('DRUPAL_ROOT', $pub_dir);
6
+
7
+ if (!file_exists($pub_dir . '/includes/bootstrap.inc')) die('Bootstrap failed');
8
+
9
+ $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
10
+ $_SERVER['REQUEST_METHOD'] = 'GET';
11
+
12
+ require_once $pub_dir . '/includes/bootstrap.inc';
13
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
@@ -0,0 +1,5 @@
1
+ <?php
2
+
3
+ require 'drupal_bootstrap.php';
4
+
5
+ drupal_flush_all_caches();
@@ -7,9 +7,11 @@
7
7
  "license": "MIT",
8
8
  "private": true,
9
9
  "dependencies": {
10
- "jquery": "~1.10.2",
11
- "modernizr": "~2.6.2",
12
- "selectivizr": "~1.0.2",
13
- "respond": "~1.3.0"
14
- }
10
+ "jquery" : "~1.11",
11
+ "modernizr" : "~2.6.2",
12
+ "selectivizr" : "~1.0.2",
13
+ "respond" : "~1.3.0",
14
+ "bootstrap-sass" : "git://github.com/twbs/bootstrap-sass.git",
15
+ "icomoon" : "git://github.com/layerssss/icomoon-bower.git"
16
+ }
15
17
  }
@@ -8,7 +8,8 @@
8
8
  "phpmailer/phpmailer" : "dev-master",
9
9
  "azt3k/abc-silverstripe" : "dev-master",
10
10
  "azt3k/abc-silverstripe-mailer" : "dev-master",
11
- "nathancox/minify" : "dev-master"
11
+ "nathancox/minify" : "dev-master",
12
+ "d11wtq/boris" : "dev-master"
12
13
  },
13
14
  "extra": {
14
15
  "installer-paths": {
@@ -0,0 +1,7 @@
1
+ <?php
2
+
3
+ require realpath(__DIR__ . '/../vendor/autoload.php');
4
+ require 'ss_bootstrap.php';
5
+
6
+ $boris = new \Boris\Boris('ss> ');
7
+ $boris->start();
@@ -0,0 +1,123 @@
1
+ <?php
2
+
3
+ /**
4
+ * File similar to main.php designed for command-line scripts
5
+ *
6
+ * This file lets you execute SilverStripe requests from the command-line. The URL is passed as the first argument to
7
+ * the scripts.
8
+ *
9
+ * @package framework
10
+ * @subpackage core
11
+ */
12
+
13
+ /**
14
+ * Ensure that people can't access this from a web-server
15
+ */
16
+ if(isset($_SERVER['HTTP_HOST'])) {
17
+ echo "cli-script.php can't be run from a web request, you have to run it on the command-line.";
18
+ die();
19
+ }
20
+
21
+ /**
22
+ * Identify the cli-script.php file and change to its container directory, so that require_once() works
23
+ */
24
+ $_SERVER['SCRIPT_FILENAME'] = __FILE__;
25
+ chdir(dirname($_SERVER['SCRIPT_FILENAME']));
26
+
27
+ /**
28
+ * Process arguments and load them into the $_GET and $_REQUEST arrays
29
+ * For example,
30
+ * sake my/url somearg otherarg key=val --otherkey=val third=val&fourth=val
31
+ *
32
+ * Will result in the following get data:
33
+ * args => array('somearg', 'otherarg'),
34
+ * key => val
35
+ * otherkey => val
36
+ * third => val
37
+ * fourth => val
38
+ */
39
+ // if(isset($_SERVER['argv'][2])) {
40
+ // $args = array_slice($_SERVER['argv'],2);
41
+ // if(!isset($_GET)) $_GET = array();
42
+ // if(!isset($_REQUEST)) $_REQUEST = array();
43
+ // foreach($args as $arg) {
44
+ // if(strpos($arg,'=') == false) {
45
+ // $_GET['args'][] = $arg;
46
+ // } else {
47
+ // $newItems = array();
48
+ // parse_str( (substr($arg,0,2) == '--') ? substr($arg,2) : $arg, $newItems );
49
+ // $_GET = array_merge($_GET, $newItems);
50
+ // }
51
+ // }
52
+ // $_REQUEST = array_merge($_REQUEST, $_GET);
53
+ // }
54
+
55
+ // // Set 'url' GET parameter
56
+ // if(isset($_SERVER['argv'][1])) {
57
+ // $_REQUEST['url'] = $_SERVER['argv'][1];
58
+ // $_GET['url'] = $_SERVER['argv'][1];
59
+ // }
60
+
61
+ /**
62
+ * Include SilverStripe's core code
63
+ */
64
+ require_once("../public/framework/core/Core.php");
65
+
66
+ global $databaseConfig;
67
+
68
+ // We don't have a session in cli-script, but this prevents errors
69
+ $_SESSION = null;
70
+
71
+ require_once("../public/framework/model/DB.php");
72
+
73
+
74
+ // Connect to database
75
+ if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) {
76
+ echo "\nPlease configure your database connection details. You can do this by creating a file
77
+ called _ss_environment.php in either of the following locations:\n\n";
78
+ echo " - " . BASE_PATH . DIRECTORY_SEPARATOR . "_ss_environment.php\n - ";
79
+ echo dirname(BASE_PATH) . DIRECTORY_SEPARATOR . "_ss_environment.php\n\n";
80
+ echo <<<ENVCONTENT
81
+
82
+ Put the following content into this file:
83
+ --------------------------------------------------
84
+ <?php
85
+
86
+ /* Change this from 'dev' to 'live' for a production environment. */
87
+ define('SS_ENVIRONMENT_TYPE', 'dev');
88
+
89
+ /* This defines a default database user */
90
+ define('SS_DATABASE_SERVER', 'localhost');
91
+ define('SS_DATABASE_USERNAME', '<user>');
92
+ define('SS_DATABASE_PASSWORD', '<password>');
93
+ define('SS_DATABASE_NAME', '<database>');
94
+ --------------------------------------------------
95
+
96
+ Once you have done that, run 'composer install' or './framework/sake dev/build' to create
97
+ an empty database.
98
+
99
+ For more information, please read this page in our docs:
100
+ http://doc.silverstripe.org/framework/en/topics/environment-management
101
+
102
+
103
+ ENVCONTENT;
104
+ exit(1);
105
+ }
106
+ DB::connect($databaseConfig);
107
+
108
+
109
+ // // Get the request URL from the querystring arguments
110
+ // $url = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : null;
111
+ // if(!$url) {
112
+ // echo 'Please specify an argument to cli-script.php/sake. For more information, visit'
113
+ // . ' http://doc.silverstripe.org/framework/en/topics/commandline';
114
+ // die();
115
+ // }
116
+
117
+ // $_SERVER['REQUEST_URI'] = BASE_URL . '/' . $url;
118
+
119
+ // Direct away - this is the "main" function, that hands control to the apporopriate controller
120
+ DataModel::set_inst(new DataModel());
121
+ // Director::direct($url, DataModel::inst());
122
+
123
+