bonethug 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,260 @@
1
+ <?php
2
+ // $Id: default.settings.php,v 1.8.2.5 2010/12/15 13:21:14 goba Exp $
3
+
4
+ /**
5
+ * @file
6
+ * Drupal site-specific configuration file.
7
+ *
8
+ * IMPORTANT NOTE:
9
+ * This file may have been set to read-only by the Drupal installation
10
+ * program. If you make changes to this file, be sure to protect it again
11
+ * after making your modifications. Failure to remove write permissions
12
+ * to this file is a security risk.
13
+ *
14
+ * The configuration file to be loaded is based upon the rules below.
15
+ *
16
+ * The configuration directory will be discovered by stripping the
17
+ * website's hostname from left to right and pathname from right to
18
+ * left. The first configuration file found will be used and any
19
+ * others will be ignored. If no other configuration file is found
20
+ * then the default configuration file at 'sites/default' will be used.
21
+ *
22
+ * For example, for a fictitious site installed at
23
+ * http://www.drupal.org/mysite/test/, the 'settings.php'
24
+ * is searched in the following directories:
25
+ *
26
+ * 1. sites/www.drupal.org.mysite.test
27
+ * 2. sites/drupal.org.mysite.test
28
+ * 3. sites/org.mysite.test
29
+ *
30
+ * 4. sites/www.drupal.org.mysite
31
+ * 5. sites/drupal.org.mysite
32
+ * 6. sites/org.mysite
33
+ *
34
+ * 7. sites/www.drupal.org
35
+ * 8. sites/drupal.org
36
+ * 9. sites/org
37
+ *
38
+ * 10. sites/default
39
+ *
40
+ * If you are installing on a non-standard port number, prefix the
41
+ * hostname with that number. For example,
42
+ * http://www.drupal.org:8080/mysite/test/ could be loaded from
43
+ * sites/8080.www.drupal.org.mysite.test/.
44
+ */
45
+
46
+ /**
47
+ * Database settings:
48
+ *
49
+ * Note that the $db_url variable gets parsed using PHP's built-in
50
+ * URL parser (i.e. using the "parse_url()" function) so make sure
51
+ * not to confuse the parser. If your username, password
52
+ * or database name contain characters used to delineate
53
+ * $db_url parts, you can escape them via URI hex encodings:
54
+ *
55
+ * : = %3a / = %2f @ = %40
56
+ * + = %2b ( = %28 ) = %29
57
+ * ? = %3f = = %3d & = %26
58
+ *
59
+ * To specify multiple connections to be used in your site (i.e. for
60
+ * complex custom modules) you can also specify an associative array
61
+ * of $db_url variables with the 'default' element used until otherwise
62
+ * requested.
63
+ *
64
+ * You can optionally set prefixes for some or all database table names
65
+ * by using the $db_prefix setting. If a prefix is specified, the table
66
+ * name will be prepended with its value. Be sure to use valid database
67
+ * characters only, usually alphanumeric and underscore. If no prefixes
68
+ * are desired, leave it as an empty string ''.
69
+ *
70
+ * To have all database names prefixed, set $db_prefix as a string:
71
+ *
72
+ * $db_prefix = 'main_';
73
+ *
74
+ * To provide prefixes for specific tables, set $db_prefix as an array.
75
+ * The array's keys are the table names and the values are the prefixes.
76
+ * The 'default' element holds the prefix for any tables not specified
77
+ * elsewhere in the array. Example:
78
+ *
79
+ * $db_prefix = array(
80
+ * 'default' => 'main_',
81
+ * 'users' => 'shared_',
82
+ * 'sessions' => 'shared_',
83
+ * 'role' => 'shared_',
84
+ * 'authmap' => 'shared_',
85
+ * );
86
+ *
87
+ * Database URL format:
88
+ * $db_url = 'mysql://username:password@localhost/databasename';
89
+ * $db_url = 'mysqli://username:password@localhost/databasename';
90
+ * $db_url = 'pgsql://username:password@localhost/databasename';
91
+ */
92
+ // load db settings
93
+ $db_url = 'mysqli://'.$db->user.':'.$db->pass.'@'.$db->host.'/'.$db->name;
94
+ $db_prefix = '';
95
+
96
+ /**
97
+ * Database default collation.
98
+ *
99
+ * All data stored in Drupal is in UTF-8. Certain databases, such as MySQL,
100
+ * support different algorithms for comparing, indexing, and sorting characters;
101
+ * a so called "collation". The default collation of a database normally works
102
+ * for many use-cases, but depending on the language(s) of the stored data, it
103
+ * may be necessary to use a different collation.
104
+ * Important:
105
+ * - Only set or change this value BEFORE installing Drupal, unless you know
106
+ * what you are doing.
107
+ * - All database tables and columns should be in the same collation. Otherwise,
108
+ * string comparisons performed for table JOINs will be significantly slower.
109
+ * - Especially when storing data in German or Russian on MySQL 5.1+, you want
110
+ * to use the 'utf8_unicode_ci' collation instead.
111
+ *
112
+ * @see http://drupal.org/node/772678
113
+ */
114
+ # $db_collation = 'utf8_general_ci';
115
+
116
+ /**
117
+ * Access control for update.php script
118
+ *
119
+ * If you are updating your Drupal installation using the update.php script
120
+ * being not logged in as administrator, you will need to modify the access
121
+ * check statement below. Change the FALSE to a TRUE to disable the access
122
+ * check. After finishing the upgrade, be sure to open this file again
123
+ * and change the TRUE back to a FALSE!
124
+ */
125
+ $update_free_access = FALSE;
126
+
127
+ /**
128
+ * Base URL (optional).
129
+ *
130
+ * If you are experiencing issues with different site domains,
131
+ * uncomment the Base URL statement below (remove the leading hash sign)
132
+ * and fill in the absolute URL to your Drupal installation.
133
+ *
134
+ * You might also want to force users to use a given domain.
135
+ * See the .htaccess file for more information.
136
+ *
137
+ * Examples:
138
+ * $base_url = 'http://www.example.com';
139
+ * $base_url = 'http://www.example.com:8888';
140
+ * $base_url = 'http://www.example.com/drupal';
141
+ * $base_url = 'https://www.example.com:8888/drupal';
142
+ *
143
+ * It is not allowed to have a trailing slash; Drupal will add it
144
+ * for you.
145
+ */
146
+ # $base_url = 'http://www.example.com'; // NO trailing slash!
147
+
148
+ /**
149
+ * PHP settings:
150
+ *
151
+ * To see what PHP settings are possible, including whether they can
152
+ * be set at runtime (ie., when ini_set() occurs), read the PHP
153
+ * documentation at http://www.php.net/manual/en/ini.php#ini.list
154
+ * and take a look at the .htaccess file to see which non-runtime
155
+ * settings are used there. Settings defined here should not be
156
+ * duplicated there so as to avoid conflict issues.
157
+ */
158
+ ini_set('arg_separator.output', '&amp;');
159
+ ini_set('magic_quotes_runtime', 0);
160
+ ini_set('magic_quotes_sybase', 0);
161
+ ini_set('session.cache_expire', 200000);
162
+ ini_set('session.cache_limiter', 'none');
163
+ ini_set('session.cookie_lifetime', 2000000);
164
+ ini_set('session.gc_maxlifetime', 200000);
165
+ ini_set('session.save_handler', 'user');
166
+ ini_set('session.use_cookies', 1);
167
+ ini_set('session.use_only_cookies', 1);
168
+ ini_set('session.use_trans_sid', 0);
169
+ ini_set('url_rewriter.tags', '');
170
+
171
+ /**
172
+ * If you encounter a situation where users post a large amount of text, and
173
+ * the result is stripped out upon viewing but can still be edited, Drupal's
174
+ * output filter may not have sufficient memory to process it. If you
175
+ * experience this issue, you may wish to uncomment the following two lines
176
+ * and increase the limits of these variables. For more information, see
177
+ * http://php.net/manual/en/pcre.configuration.php.
178
+ */
179
+ # ini_set('pcre.backtrack_limit', 200000);
180
+ # ini_set('pcre.recursion_limit', 200000);
181
+
182
+ /**
183
+ * Drupal automatically generates a unique session cookie name for each site
184
+ * based on on its full domain name. If you have multiple domains pointing at
185
+ * the same Drupal site, you can either redirect them all to a single domain
186
+ * (see comment in .htaccess), or uncomment the line below and specify their
187
+ * shared base domain. Doing so assures that users remain logged in as they
188
+ * cross between your various domains.
189
+ */
190
+ # $cookie_domain = 'example.com';
191
+
192
+ /**
193
+ * Variable overrides:
194
+ *
195
+ * To override specific entries in the 'variable' table for this site,
196
+ * set them here. You usually don't need to use this feature. This is
197
+ * useful in a configuration file for a vhost or directory, rather than
198
+ * the default settings.php. Any configuration setting from the 'variable'
199
+ * table can be given a new value. Note that any values you provide in
200
+ * these variable overrides will not be modifiable from the Drupal
201
+ * administration interface.
202
+ *
203
+ * Remove the leading hash signs to enable.
204
+ */
205
+ # $conf = array(
206
+ # 'site_name' => 'My Drupal site',
207
+ # 'theme_default' => 'minnelli',
208
+ # 'anonymous' => 'Visitor',
209
+ /**
210
+ * A custom theme can be set for the off-line page. This applies when the site
211
+ * is explicitly set to off-line mode through the administration page or when
212
+ * the database is inactive due to an error. It can be set through the
213
+ * 'maintenance_theme' key. The template file should also be copied into the
214
+ * theme. It is located inside 'modules/system/maintenance-page.tpl.php'.
215
+ * Note: This setting does not apply to installation and update pages.
216
+ */
217
+ # 'maintenance_theme' => 'minnelli',
218
+ /**
219
+ * reverse_proxy accepts a boolean value.
220
+ *
221
+ * Enable this setting to determine the correct IP address of the remote
222
+ * client by examining information stored in the X-Forwarded-For headers.
223
+ * X-Forwarded-For headers are a standard mechanism for identifying client
224
+ * systems connecting through a reverse proxy server, such as Squid or
225
+ * Pound. Reverse proxy servers are often used to enhance the performance
226
+ * of heavily visited sites and may also provide other site caching,
227
+ * security or encryption benefits. If this Drupal installation operates
228
+ * behind a reverse proxy, this setting should be enabled so that correct
229
+ * IP address information is captured in Drupal's session management,
230
+ * logging, statistics and access management systems; if you are unsure
231
+ * about this setting, do not have a reverse proxy, or Drupal operates in
232
+ * a shared hosting environment, this setting should be set to disabled.
233
+ */
234
+ # 'reverse_proxy' => TRUE,
235
+ /**
236
+ * reverse_proxy accepts an array of IP addresses.
237
+ *
238
+ * Each element of this array is the IP address of any of your reverse
239
+ * proxies. Filling this array Drupal will trust the information stored
240
+ * in the X-Forwarded-For headers only if Remote IP address is one of
241
+ * these, that is the request reaches the web server from one of your
242
+ * reverse proxies. Otherwise, the client could directly connect to
243
+ * your web server spoofing the X-Forwarded-For headers.
244
+ */
245
+ # 'reverse_proxy_addresses' => array('a.b.c.d', ...),
246
+ # );
247
+
248
+ /**
249
+ * String overrides:
250
+ *
251
+ * To override specific strings on your site with or without enabling locale
252
+ * module, add an entry to this list. This functionality allows you to change
253
+ * a small number of your site's default English language interface strings.
254
+ *
255
+ * Remove the leading hash signs to enable.
256
+ */
257
+ # $conf['locale_custom_strings_en'] = array(
258
+ # 'forum' => 'Discussion board',
259
+ # '@count min' => '@count minutes',
260
+ # );
@@ -1,31 +1,5 @@
1
1
  {
2
- "name" : "insight/report-framework",
3
- "require" : {
4
- "symfony/yaml" : "2.3.*@dev",
5
- "silverstripe/framework" : "3.1.*@dev",
6
- "silverstripe/cms" : "3.1.*@dev",
7
- "silverstripe-themes/simple" : "dev-master",
8
- "silverstripe/installer" : "3.1.*@dev",
9
- "silverstripe/bootstrap-forms" : "dev-master",
10
- "silverstripe/html5" : "dev-master",
11
- "silverstripe/widgets" : "dev-master",
12
- "silverstripe/compass" : "dev-master"
13
- },
14
- "extra": {
15
- "installer-paths": {
16
- "public/vendor/{$name}": [
17
- ],
18
- "public/themes/{$name}": [
19
- "silverstripe-themes/simple"
20
- ],
21
- "public/{$name}": [
22
- "silverstripe/framework",
23
- "silverstripe/cms",
24
- "silverstripe/bootstrap-forms",
25
- "silverstripe/html5",
26
- "silverstripe/widgets",
27
- "silverstripe/compass"
28
- ]
2
+ "require": {
3
+ "symfony/yaml" : "2.3.*@dev"
29
4
  }
30
- }
31
5
  }
@@ -0,0 +1,58 @@
1
+ # Use this file to easily define all of your cron jobs.
2
+ #
3
+ # It's helpful, but not entirely necessary to understand cron before proceeding.
4
+ # http://en.wikipedia.org/wiki/Cron
5
+
6
+ # Example:
7
+ #
8
+ # set :output, "/path/to/my/cron_log.log"
9
+ #
10
+ # every 2.hours do
11
+ # command "/usr/bin/some_great_command"
12
+ # runner "MyModel.some_method"
13
+ # rake "some:great:rake:task"
14
+ # end
15
+ #
16
+ # every 4.days do
17
+ # runner "AnotherModel.prune_old_records"
18
+ # end
19
+
20
+ # Learn more: http://github.com/javan/whenever
21
+
22
+ # pass the path to the script
23
+ env :PATH, ENV['PATH']
24
+
25
+ # base path to this release
26
+ base_path = File.expand_path(File.dirname(__FILE__))+"/../../../current"
27
+
28
+ # log files
29
+ set :output, {:error => base_path+'/log/cron_error.log', :standard => base_path+'/log/cron.log'}
30
+
31
+ # actual jobs
32
+ every 1.day, :at => '11 pm' do
33
+ command "cd #{base_path} && export to=#{@environment} && bundle exec astrails-safe config/backup.rb"
34
+ end
35
+
36
+ every 15.minutes do
37
+ command "php #{base_path}/public/framework/cli-script.php /QuarterlyHourlyTask"
38
+ end
39
+
40
+ every 1.hour do
41
+ command "php #{base_path}/public/framework/cli-script.php /HourlyTask"
42
+ end
43
+
44
+ every 1.day :at => '2am'.minutes do
45
+ command "php #{base_path}/public/framework/cli-script.php /DailyTask"
46
+ end
47
+
48
+ every 1.week do
49
+ command "php #{base_path}/public/framework/cli-script.php /WeeklyTask"
50
+ end
51
+
52
+ every 1.month do
53
+ command "php #{base_path}/public/framework/cli-script.php /MonthlyTask"
54
+ end
55
+
56
+ every 1.year do
57
+ command "php #{base_path}/public/framework/cli-script.php YearlyTask"
58
+ end
data/skel/skel.yml ADDED
@@ -0,0 +1,7 @@
1
+ base:
2
+ project_types:
3
+ drupal:
4
+ php:
5
+ rails3:
6
+ silverstripe3:
7
+ sinatra:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bonethug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-15 00:00:00.000000000 Z
12
+ date: 2013-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -107,19 +107,20 @@ files:
107
107
  - bin/bonethug
108
108
  - bonethug.gemspec
109
109
  - lib/bonethug.rb
110
- - lib/bonethug/setup.rake
110
+ - lib/bonethug/cli.rb
111
+ - lib/bonethug/installer.rb
111
112
  - lib/bonethug/utils.rb
112
113
  - lib/bonethug/version.rb
113
114
  - lib/tasks/setup.rake
114
115
  - skel/base/.gitignore
115
116
  - skel/base/Gemfile
116
117
  - skel/base/README.md
117
- - skel/base/composer.json
118
- - skel/base/config/backup.rb
119
- - skel/base/config/cnf.yml
120
- - skel/base/config/deploy.rb
121
- - skel/base/config/schedule.rb
118
+ - skel/base/config/example.backup.rb
119
+ - skel/base/config/example.cnf.yml
120
+ - skel/base/config/example.deploy.rb
121
+ - skel/base/config/example.schedule.rb
122
122
  - skel/base/lib/conf.rb
123
+ - skel/base/log/.gitkeep
123
124
  - skel/base/public/apple-touch-icon-114x114-precomposed.png
124
125
  - skel/base/public/apple-touch-icon-72x72-precomposed.png
125
126
  - skel/base/public/apple-touch-icon.png
@@ -128,10 +129,15 @@ files:
128
129
  - skel/base/public/robots.txt
129
130
  - skel/project_types/drupal/.gitignore
130
131
  - skel/project_types/drupal/composer.json
132
+ - skel/project_types/drupal/public/sites/default/development.settings.php
133
+ - skel/project_types/drupal/public/sites/default/production.settings.php
134
+ - skel/project_types/drupal/public/sites/default/settings.php
135
+ - skel/project_types/drupal/public/sites/default/staging.settings.php
131
136
  - skel/project_types/php/.gitignore
132
137
  - skel/project_types/php/composer.json
133
138
  - skel/project_types/silverstripe3/.gitignore
134
139
  - skel/project_types/silverstripe3/composer.json
140
+ - skel/project_types/silverstripe3/config/example.schedule.rb
135
141
  - skel/project_types/silverstripe3/public/.htaccess
136
142
  - skel/project_types/silverstripe3/public/abc/_config.php
137
143
  - skel/project_types/silverstripe3/public/abc/code/Admin/AbcModelAdmin.php
@@ -1293,6 +1299,7 @@ files:
1293
1299
  - skel/project_types/silverstripe3/public/themes/project/templates/Layout/Security.ss
1294
1300
  - skel/project_types/silverstripe3/public/themes/project/templates/Page.ss
1295
1301
  - skel/project_types/silverstripe3/public/zzz-abc/_config.php
1302
+ - skel/skel.yml
1296
1303
  homepage: https://github.com/azt3k/bonethug
1297
1304
  licenses:
1298
1305
  - MIT
@@ -1,19 +0,0 @@
1
- require 'rake'
2
-
3
- namespace :setup do
4
-
5
- desc "setup ss3.1-dev project"
6
- task :silverstripe31dev => :environment do
7
-
8
- puts "just pretending"
9
-
10
- end
11
-
12
- desc "setup silverstripe 3 project"
13
- task :silverstripe => :environment do
14
-
15
- puts "just pretending 2"
16
-
17
- end
18
-
19
- end
@@ -1,31 +0,0 @@
1
- {
2
- "name" : "insight/report-framework",
3
- "require" : {
4
- "symfony/yaml" : "2.3.*@dev",
5
- "silverstripe/framework" : "3.1.*@dev",
6
- "silverstripe/cms" : "3.1.*@dev",
7
- "silverstripe-themes/simple" : "dev-master",
8
- "silverstripe/installer" : "3.1.*@dev",
9
- "silverstripe/bootstrap-forms" : "dev-master",
10
- "silverstripe/html5" : "dev-master",
11
- "silverstripe/widgets" : "dev-master",
12
- "silverstripe/compass" : "dev-master"
13
- },
14
- "extra": {
15
- "installer-paths": {
16
- "public/vendor/{$name}": [
17
- ],
18
- "public/themes/{$name}": [
19
- "silverstripe-themes/simple"
20
- ],
21
- "public/{$name}": [
22
- "silverstripe/framework",
23
- "silverstripe/cms",
24
- "silverstripe/bootstrap-forms",
25
- "silverstripe/html5",
26
- "silverstripe/widgets",
27
- "silverstripe/compass"
28
- ]
29
- }
30
- }
31
- }
File without changes