bonethug 0.0.6 → 0.0.7
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.
- data/.gitignore +1 -0
- data/Gemfile +2 -1
- data/ISSUES.txt +20 -0
- data/bonethug.gemspec +1 -0
- data/lib/bonethug/installer.rb +11 -5
- data/lib/bonethug/version.rb +1 -1
- data/skel/base/config/{example.cnf.yml → example/cnf.yml} +30 -5
- data/skel/base/config/{example.deploy.rb → example/deploy.rb} +8 -7
- data/skel/project_types/silverstripe3/config.ru +3 -0
- data/skel/project_types/silverstripe3/public/project/_config.php +45 -59
- data/skel/project_types/silverstripe3/public/project/javascript/.gitkeep +0 -0
- data/skel/project_types/silverstripe3/public/themes/project/css/.gitkeep +0 -0
- data/skel/project_types/silverstripe3/public/themes/project/templates/Includes/.gitkeep +0 -0
- data/skel/skel.yml +4 -1
- metadata +28 -7
- /data/skel/base/config/{example.backup.rb → example/backup.rb} +0 -0
- /data/skel/base/config/{example.schedule.rb → example/schedule.rb} +0 -0
- /data/skel/project_types/silverstripe3/config/{example.schedule.rb → example/schedule.rb} +0 -0
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -6,4 +6,5 @@ gemspec
|
|
6
6
|
# tell bundler to get stuff from git hub
|
7
7
|
gem 'mina', github: 'nadarei/mina'
|
8
8
|
gem 'astrails-safe', github: 'astrails/safe'
|
9
|
-
gem 'whenever', github: 'javan/whenever'
|
9
|
+
gem 'whenever', github: 'javan/whenever'
|
10
|
+
gem 'sprockets', github: 'sstephenson/sprockets'
|
data/ISSUES.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
- Silverstripe compass is broken on windows - the below helps in Rubygems::_run
|
2
|
+
|
3
|
+
// $process = proc_open("HOME='$gempath' GEM_HOME='$gempath' " . (@$_GET['flush'] ? "FLUSH={$_GET['flush']} " : '') . $cmd, $descriptorspec, $pipes);
|
4
|
+
$envs = array('HOME' => $gempath, 'GEM_HOME' => $gempath);
|
5
|
+
if (@$_GET['flush']) $envs['FLUSH'] = $_GET['flush'];
|
6
|
+
if (defined('PATH')) $envs['PATH'] = PATH;
|
7
|
+
|
8
|
+
$process = proc_open($cmd, $descriptorspec, $pipes, null, $envs);
|
9
|
+
|
10
|
+
but it still throws:
|
11
|
+
|
12
|
+
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:77:in `join': can't convert nil into String (TypeError)
|
13
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:77:in `<class:configfile>'
|
14
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:30:in `<top (required)="">'
|
15
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|
16
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|
17
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:9:in `<top (required)="">'
|
18
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|
19
|
+
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
|
20
|
+
from C:/Ruby193/bin/gem:18:in `<main>'
|
data/bonethug.gemspec
CHANGED
data/lib/bonethug/installer.rb
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# Todo
|
2
|
+
# ----------------
|
3
|
+
# - Have some sort of safe vs forced install - tie in with exlcuded paths
|
4
|
+
# - Check that excluded paths is working in manifest
|
5
|
+
# ----------------
|
6
|
+
|
1
7
|
require File.expand_path(File.dirname(__FILE__)) + '/../../skel/base/lib/conf'
|
2
8
|
require 'fileutils'
|
3
9
|
require 'find'
|
@@ -143,17 +149,17 @@ module Bonethug
|
|
143
149
|
@@project_config_files.each do |config|
|
144
150
|
|
145
151
|
do_copy = true
|
146
|
-
example_file = target + '/config/example
|
152
|
+
example_file = target + '/config/example/' + config
|
147
153
|
target_file = target + '/config/' + config
|
148
154
|
|
149
155
|
# analyse the config file + build data file
|
150
156
|
file_exists = File.exist?(target_file)
|
151
157
|
contents_not_modified = false
|
152
|
-
contents_not_modified = true if file_exists and meta_data and meta_data['config_digests'] and meta_data['config_digests']['example
|
158
|
+
contents_not_modified = true if file_exists and meta_data and meta_data['config_digests'] and meta_data['config_digests']['example/' + config] == self.contents_md5(target_file)
|
153
159
|
|
154
160
|
# meta_data_is_hash = meta_data_exists and meta_data.class.name == 'Hash' and meta_data['config_digests'].class.name == 'Hash'
|
155
|
-
# config_digests_found = meta_data_is_hash and meta_data['config_digests'].methods.include?('has_key?') and meta_data['config_digests'].has_key?('example
|
156
|
-
# contents_not_modified = config_digests_found and meta_data['config_digests']['example
|
161
|
+
# config_digests_found = meta_data_is_hash and meta_data['config_digests'].methods.include?('has_key?') and meta_data['config_digests'].has_key?('example/' + config)
|
162
|
+
# contents_not_modified = config_digests_found and meta_data['config_digests']['example/' + config] == self.contents_md5(target_file)
|
157
163
|
|
158
164
|
# don't copy if the file exists...
|
159
165
|
do_copy = false if file_exists
|
@@ -181,7 +187,7 @@ module Bonethug
|
|
181
187
|
|
182
188
|
meta_data = {'config_digests' => {}}
|
183
189
|
@@project_config_files.each do |file|
|
184
|
-
meta_data['config_digests']['example
|
190
|
+
meta_data['config_digests']['example/' + file] = self.contents_md5(base_dir + '/config/example/' + file)
|
185
191
|
end
|
186
192
|
File.open(base_dir + '/.bonethug/data','w') { |file| file.puts meta_data.to_yaml }
|
187
193
|
|
data/lib/bonethug/version.rb
CHANGED
@@ -19,17 +19,20 @@ deploy:
|
|
19
19
|
dbs:
|
20
20
|
default:
|
21
21
|
development:
|
22
|
-
|
22
|
+
name: project_development
|
23
|
+
user: project_development
|
23
24
|
pass:
|
24
25
|
host: localhost
|
25
26
|
port: 3306
|
26
27
|
staging:
|
27
|
-
|
28
|
+
name: project_staging
|
29
|
+
user: project_staging
|
28
30
|
pass: passw0rd
|
29
31
|
host: localhost
|
30
32
|
port: 3306
|
31
33
|
production:
|
32
|
-
|
34
|
+
name: project_production
|
35
|
+
user: project_production
|
33
36
|
pass: passw0rd
|
34
37
|
host: localhost
|
35
38
|
port: 3306
|
@@ -51,6 +54,21 @@ backup:
|
|
51
54
|
key: key
|
52
55
|
secret: secret
|
53
56
|
bucket: bucket
|
57
|
+
mail:
|
58
|
+
smtp:
|
59
|
+
development:
|
60
|
+
staging:
|
61
|
+
production:
|
62
|
+
default_from:
|
63
|
+
name: dev
|
64
|
+
email: dev@domain.com
|
65
|
+
server: smtp.gmail.com
|
66
|
+
authenticate: true
|
67
|
+
user: username@domain.com
|
68
|
+
pass: passw0rd
|
69
|
+
secure: tls
|
70
|
+
charset_encoding: utf-8
|
71
|
+
port: 587
|
54
72
|
apache:
|
55
73
|
development:
|
56
74
|
staging:
|
@@ -58,7 +76,6 @@ apache:
|
|
58
76
|
server_aliases:
|
59
77
|
- www.staging.domain.com
|
60
78
|
env_vars:
|
61
|
-
SS_ENVIRONMENT_TYPE: test
|
62
79
|
RAILS_ENV: staging
|
63
80
|
APPLICATION_ENV: staging
|
64
81
|
production:
|
@@ -67,12 +84,14 @@ apache:
|
|
67
84
|
- www.production.domain.com
|
68
85
|
server_admin: dev@domain.com
|
69
86
|
env_vars:
|
70
|
-
SS_ENVIRONMENT_TYPE: live
|
71
87
|
RAILS_ENV: production
|
72
88
|
APPLICATION_ENV: production
|
73
89
|
chown:
|
74
90
|
development:
|
75
91
|
staging:
|
92
|
+
-
|
93
|
+
path: public/uploads
|
94
|
+
user: www-data
|
76
95
|
production:
|
77
96
|
-
|
78
97
|
path: public/uploads
|
@@ -80,6 +99,9 @@ chown:
|
|
80
99
|
chmod:
|
81
100
|
development:
|
82
101
|
staging:
|
102
|
+
-
|
103
|
+
path: public/uploads
|
104
|
+
mode: 775
|
83
105
|
production:
|
84
106
|
-
|
85
107
|
path: public/uploads
|
@@ -87,6 +109,9 @@ chmod:
|
|
87
109
|
chgrp:
|
88
110
|
development:
|
89
111
|
staging:
|
112
|
+
-
|
113
|
+
path: public/uploads
|
114
|
+
group: www-data
|
90
115
|
production:
|
91
116
|
-
|
92
117
|
path: public/uploads
|
@@ -34,7 +34,7 @@ log_dirs = conf.get('log_dirs','Array') || []
|
|
34
34
|
vhost = deploy.get('project_slug') + '_' + env
|
35
35
|
|
36
36
|
# composer?
|
37
|
-
use_composer = ['silverstripe','drupal','php'].include? deploy.get('project_type')
|
37
|
+
use_composer = ['silverstripe','silverstripe3','drupal','php'].include? deploy.get('project_type')
|
38
38
|
|
39
39
|
# directories we need to track
|
40
40
|
resources += ['backups']
|
@@ -103,7 +103,7 @@ desc "Updates bundled dependencies"
|
|
103
103
|
task :update_packages => :environment do
|
104
104
|
invoke :'bundle:update'
|
105
105
|
queue! %[php #{deploy_to}/shared/composer.phar update] if use_composer
|
106
|
-
queue! %[php #{deploy_to}/current/public/framework/cli-script.php dev/build] if deploy.get('project_type')
|
106
|
+
queue! %[php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
|
107
107
|
end
|
108
108
|
|
109
109
|
desc "Restores application state to the most recent backup"
|
@@ -169,7 +169,8 @@ task :deploy => :environment do
|
|
169
169
|
|
170
170
|
DocumentRoot #{deploy_to}/current/public
|
171
171
|
|
172
|
-
#{env_vars}
|
172
|
+
#{env_vars}
|
173
|
+
PassEnv PATH
|
173
174
|
|
174
175
|
CustomLog #{deploy_to}/shared/log/bytes.log bytes
|
175
176
|
CustomLog #{deploy_to}/shared/log/combined.log combined
|
@@ -202,7 +203,7 @@ task :deploy => :environment do
|
|
202
203
|
chowns = conf.get('chown.'+env)
|
203
204
|
if chowns
|
204
205
|
chowns.each do |index, chown|
|
205
|
-
queue! %[cd #{deploy_to}/current/#{chown.get('path')} && chown -R chown.get('user') .]
|
206
|
+
queue! %[cd #{deploy_to}/current/#{chown.get('path')} && chown -R #{chown.get('user')} .]
|
206
207
|
end
|
207
208
|
end
|
208
209
|
|
@@ -210,7 +211,7 @@ task :deploy => :environment do
|
|
210
211
|
chgrps = conf.get('chgrp.'+env)
|
211
212
|
if chgrps
|
212
213
|
chgrps.each do |index, chgrp|
|
213
|
-
queue! %[cd #{deploy_to}/current/#{chgrp.get('path')} && chgrp -R chgrp.get('group') .]
|
214
|
+
queue! %[cd #{deploy_to}/current/#{chgrp.get('path')} && chgrp -R #{chgrp.get('group')} .]
|
214
215
|
end
|
215
216
|
end
|
216
217
|
|
@@ -218,7 +219,7 @@ task :deploy => :environment do
|
|
218
219
|
chmods = conf.get('chmod.'+env)
|
219
220
|
if chmods
|
220
221
|
chmods.each do |index, chmod|
|
221
|
-
queue! %[cd #{deploy_to}/current/#{chmod.get('path')} && chmod -R chmod.get('mode') .]
|
222
|
+
queue! %[cd #{deploy_to}/current/#{chmod.get('path')} && chmod -R #{chmod.get('mode')} .]
|
222
223
|
end
|
223
224
|
end
|
224
225
|
|
@@ -226,7 +227,7 @@ task :deploy => :environment do
|
|
226
227
|
queue! %[/etc/init.d/apache2 reload]
|
227
228
|
invoke :'whenever:update'
|
228
229
|
|
229
|
-
queue! %[php #{deploy_to}/current/public/framework/cli-script.php dev/build] if deploy.get('project_type')
|
230
|
+
queue! %[php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
|
230
231
|
|
231
232
|
end
|
232
233
|
end
|
@@ -4,8 +4,19 @@ require '../../vendor/autoload.php';
|
|
4
4
|
|
5
5
|
use Symfony\Component\Yaml\Yaml;
|
6
6
|
|
7
|
+
// ss env translation
|
8
|
+
$ss_env = array(
|
9
|
+
'development' => 'dev',
|
10
|
+
'staging' => 'test',
|
11
|
+
'production' => 'live'
|
12
|
+
);
|
13
|
+
|
7
14
|
// Transfer environmental vars to constants
|
8
|
-
define('
|
15
|
+
define('APPLICATION_ENV', getenv('APPLICATION_ENV'));
|
16
|
+
|
17
|
+
// Set SS env vars
|
18
|
+
putenv('SS_ENVIRONMENT_TYPE='+$ss_env[APPLICATION_ENV]);
|
19
|
+
define('SS_ENVIRONMENT_TYPE', $ss_env[APPLICATION_ENV]);
|
9
20
|
define('SS_SEND_ALL_EMAILS_TO', getenv('SS_SEND_ALL_EMAILS_TO'));
|
10
21
|
|
11
22
|
global $project, $databaseConfig, $_FILE_TO_URL_MAPPING;
|
@@ -14,22 +25,29 @@ global $project, $databaseConfig, $_FILE_TO_URL_MAPPING;
|
|
14
25
|
$project = 'project';
|
15
26
|
SSViewer::set_theme('project');
|
16
27
|
|
17
|
-
// load
|
28
|
+
// load conf
|
18
29
|
$cnf = Yaml::parse(__DIR__.'/../../config/cnf.yml');
|
19
|
-
|
30
|
+
|
31
|
+
// load db settings
|
32
|
+
$db_cnf = (object) $cnf['dbs']['default'][APPLICATION_ENV];
|
33
|
+
|
34
|
+
// load mail settings
|
35
|
+
$mail = (object) $cnf['mail']['smtp'][APPLICATION_ENV];
|
36
|
+
|
37
|
+
// file to url
|
38
|
+
$base_dir = __DIR__ . '/..';
|
39
|
+
$url = $cnf['apache'][APPLICATION_ENV]['server_name'];
|
40
|
+
$_FILE_TO_URL_MAPPING[$base_dir] = $url;
|
20
41
|
|
21
42
|
// Env specific settings
|
22
|
-
switch(
|
43
|
+
switch(APPLICATION_ENV){
|
23
44
|
|
24
|
-
case '
|
45
|
+
case 'development':
|
25
46
|
|
26
47
|
// Debug Settings
|
27
48
|
ini_set("display_errors",1);
|
28
49
|
error_reporting(E_ALL & ~E_STRICT);
|
29
50
|
Director::set_environment_type("dev");
|
30
|
-
|
31
|
-
// load env db conf
|
32
|
-
$db_cnf = (object) $db['development'];
|
33
51
|
|
34
52
|
// Ensure that all emails get directed to the developer email address
|
35
53
|
Config::inst()->update('Email', 'send_all_emails_to', SS_SEND_ALL_EMAILS_TO);
|
@@ -38,33 +56,20 @@ switch(SS_ENVIRONMENT_TYPE){
|
|
38
56
|
Config::inst()->update('Email', 'admin_email', SS_SEND_ALL_EMAILS_TO);
|
39
57
|
|
40
58
|
// Log file
|
41
|
-
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../
|
59
|
+
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/development.log'), SS_Log::WARN, '<=');
|
42
60
|
|
43
61
|
// hard code user / pass
|
44
|
-
Security::setDefaultAdmin('admin', 'admin');
|
45
|
-
|
46
|
-
// Smtp Email Conf
|
47
|
-
define('SMTPMAILER_DEFAULT_FROM_NAME', 'dev');
|
48
|
-
define('SMTPMAILER_DEFAULT_FROM_EMAIL', 'abcdigital@abcdigital.co.nz');
|
49
|
-
define('SMTPMAILER_SMTP_SERVER_ADDRESS', 'smtp.gmail.com'); # SMTP server address
|
50
|
-
define('SMTPMAILER_DO_AUTHENTICATE', true); # Turn on SMTP server authentication. Set to false for an anonymous connection
|
51
|
-
define('SMTPMAILER_USERNAME', 'abcd.testuser@gmail.com'); # SMTP server username, if SMTPAUTH == true
|
52
|
-
define('SMTPMAILER_PASSWORD', 'testing420'); # SMTP server password, if SMTPAUTH == true
|
53
|
-
define('SMTPMAILER_CHARSET_ENCODING', 'utf-8'); # E-mails characters encoding, e.g. : 'utf-8' or 'iso-8859-1'
|
54
|
-
define('SMTPMAILER_USE_SECURE_CONNECTION', 'tls'); # SMTP encryption method : Set to '' or 'tls' or 'ssl'
|
55
|
-
define('SMTPMAILER_SMTP_SERVER_PORT', 587); # SMTP server port. Set to 25 if no encryption or tls. Set to 465 if ssl
|
62
|
+
Security::setDefaultAdmin('admin', 'admin');
|
56
63
|
|
57
64
|
break;
|
58
65
|
|
59
|
-
case '
|
66
|
+
case 'staging':
|
67
|
+
|
60
68
|
// Debug Settings
|
61
69
|
ini_set("display_errors",1);
|
62
70
|
error_reporting(E_ALL & ~E_STRICT);
|
63
71
|
Director::set_environment_type("test");
|
64
72
|
|
65
|
-
// load env db conf
|
66
|
-
$db_cnf = (object) $db['staging'];
|
67
|
-
|
68
73
|
// Ensure that all emails get directed to the developer email address
|
69
74
|
Email::send_all_emails_to(SS_SEND_ALL_EMAILS_TO);
|
70
75
|
|
@@ -75,47 +80,17 @@ switch(SS_ENVIRONMENT_TYPE){
|
|
75
80
|
Security::setDefaultAdmin('admin', 'admin');
|
76
81
|
|
77
82
|
// Log file
|
78
|
-
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../
|
79
|
-
|
80
|
-
// Smtp Email Conf
|
81
|
-
define('SMTPMAILER_DEFAULT_FROM_NAME', 'test');
|
82
|
-
define('SMTPMAILER_DEFAULT_FROM_EMAIL', 'abcdigital@abcdigital.co.nz');
|
83
|
-
define('SMTPMAILER_SMTP_SERVER_ADDRESS', 'smtp.gmail.com'); # SMTP server address
|
84
|
-
define('SMTPMAILER_DO_AUTHENTICATE', true); # Turn on SMTP server authentication. Set to false for an anonymous connection
|
85
|
-
define('SMTPMAILER_USERNAME', 'abcd.testuser@gmail.com'); # SMTP server username, if SMTPAUTH == true
|
86
|
-
define('SMTPMAILER_PASSWORD', 'testing420'); # SMTP server password, if SMTPAUTH == true
|
87
|
-
define('SMTPMAILER_CHARSET_ENCODING', 'utf-8'); # E-mails characters encoding, e.g. : 'utf-8' or 'iso-8859-1'
|
88
|
-
define('SMTPMAILER_USE_SECURE_CONNECTION', 'tls'); # SMTP encryption method : Set to '' or 'tls' or 'ssl'
|
89
|
-
define('SMTPMAILER_SMTP_SERVER_PORT', 587); # SMTP server port. Set to 25 if no encryption or tls. Set to 465 if ssl
|
90
|
-
|
91
|
-
// Requirements::javascript('http://www.bugherd.com/sidebarv2.js?apikey=lmnw4b6srak6dujqwjqchw');
|
83
|
+
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/staging.log'), SS_Log::WARN, '<=');
|
92
84
|
|
93
85
|
break;
|
94
86
|
|
95
87
|
default:
|
96
|
-
case '
|
88
|
+
case 'production':
|
97
89
|
|
98
|
-
Director::set_environment_type("live");
|
99
|
-
|
100
|
-
// load env db conf
|
101
|
-
$db_cnf = (object) $db['production'];
|
90
|
+
Director::set_environment_type("live");
|
102
91
|
|
103
92
|
// Log file
|
104
|
-
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../
|
105
|
-
|
106
|
-
// hard code user / pass
|
107
|
-
Security::setDefaultAdmin('admin', 'admin');
|
108
|
-
|
109
|
-
// Smtp Email Conf
|
110
|
-
define('SMTPMAILER_DEFAULT_FROM_NAME', 'live');
|
111
|
-
define('SMTPMAILER_DEFAULT_FROM_EMAIL', 'abcdigital@abcdigital.co.nz');
|
112
|
-
define('SMTPMAILER_SMTP_SERVER_ADDRESS', 'smtp.gmail.com'); # SMTP server address
|
113
|
-
define('SMTPMAILER_DO_AUTHENTICATE', true); # Turn on SMTP server authentication. Set to false for an anonymous connection
|
114
|
-
define('SMTPMAILER_USERNAME', 'abcd.testuser@gmail.com'); # SMTP server username, if SMTPAUTH == true
|
115
|
-
define('SMTPMAILER_PASSWORD', 'testing420'); # SMTP server password, if SMTPAUTH == true
|
116
|
-
define('SMTPMAILER_CHARSET_ENCODING', 'utf-8'); # E-mails characters encoding, e.g. : 'utf-8' or 'iso-8859-1'
|
117
|
-
define('SMTPMAILER_USE_SECURE_CONNECTION', 'tls'); # SMTP encryption method : Set to '' or 'tls' or 'ssl'
|
118
|
-
define('SMTPMAILER_SMTP_SERVER_PORT', 587); # SMTP server port. Set to 25 if no encryption or tls. Set to 465 if ssl
|
93
|
+
SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/production.log'), SS_Log::WARN, '<=');
|
119
94
|
|
120
95
|
break;
|
121
96
|
|
@@ -132,6 +107,17 @@ $databaseConfig = array(
|
|
132
107
|
);
|
133
108
|
Config::inst()->update('MySQLDatabase', 'connection_charset', 'utf8');
|
134
109
|
|
110
|
+
// set up mail
|
111
|
+
define('SMTPMAILER_DEFAULT_FROM_NAME', $mail->default_from['name']);
|
112
|
+
define('SMTPMAILER_DEFAULT_FROM_EMAIL', $mail->default_from['email']);
|
113
|
+
define('SMTPMAILER_SMTP_SERVER_ADDRESS', $mail->server);
|
114
|
+
define('SMTPMAILER_DO_AUTHENTICATE', $mail->authenticate);
|
115
|
+
define('SMTPMAILER_USERNAME', $mail->user);
|
116
|
+
define('SMTPMAILER_PASSWORD', $mail->pass);
|
117
|
+
define('SMTPMAILER_CHARSET_ENCODING', $mail->charset_encoding);
|
118
|
+
define('SMTPMAILER_USE_SECURE_CONNECTION', $mail->secure);
|
119
|
+
define('SMTPMAILER_SMTP_SERVER_PORT', $mail->port);
|
120
|
+
|
135
121
|
// Set the site locale
|
136
122
|
i18n::set_locale('en_NZ');
|
137
123
|
ini_set("date.timezone","Pacific/Auckland");
|
File without changes
|
File without changes
|
File without changes
|
data/skel/skel.yml
CHANGED
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.
|
4
|
+
version: 0.0.7
|
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-
|
12
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -91,6 +91,22 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: sprockets
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
94
110
|
description: Project Skeleton Manager
|
95
111
|
email:
|
96
112
|
- breaks.nz@gmail.com
|
@@ -101,6 +117,7 @@ extra_rdoc_files: []
|
|
101
117
|
files:
|
102
118
|
- .gitignore
|
103
119
|
- Gemfile
|
120
|
+
- ISSUES.txt
|
104
121
|
- LICENSE.txt
|
105
122
|
- README.md
|
106
123
|
- Rakefile
|
@@ -115,10 +132,10 @@ files:
|
|
115
132
|
- skel/base/.gitignore
|
116
133
|
- skel/base/Gemfile
|
117
134
|
- skel/base/README.md
|
118
|
-
- skel/base/config/example
|
119
|
-
- skel/base/config/example
|
120
|
-
- skel/base/config/example
|
121
|
-
- skel/base/config/example
|
135
|
+
- skel/base/config/example/backup.rb
|
136
|
+
- skel/base/config/example/cnf.yml
|
137
|
+
- skel/base/config/example/deploy.rb
|
138
|
+
- skel/base/config/example/schedule.rb
|
122
139
|
- skel/base/lib/conf.rb
|
123
140
|
- skel/base/log/.gitkeep
|
124
141
|
- skel/base/public/apple-touch-icon-114x114-precomposed.png
|
@@ -137,7 +154,8 @@ files:
|
|
137
154
|
- skel/project_types/php/composer.json
|
138
155
|
- skel/project_types/silverstripe3/.gitignore
|
139
156
|
- skel/project_types/silverstripe3/composer.json
|
140
|
-
- skel/project_types/silverstripe3/config
|
157
|
+
- skel/project_types/silverstripe3/config.ru
|
158
|
+
- skel/project_types/silverstripe3/config/example/schedule.rb
|
141
159
|
- skel/project_types/silverstripe3/public/.htaccess
|
142
160
|
- skel/project_types/silverstripe3/public/abc/_config.php
|
143
161
|
- skel/project_types/silverstripe3/public/abc/code/Admin/AbcModelAdmin.php
|
@@ -1291,10 +1309,13 @@ files:
|
|
1291
1309
|
- skel/project_types/silverstripe3/public/project/_config.php
|
1292
1310
|
- skel/project_types/silverstripe3/public/project/_config/config.yml
|
1293
1311
|
- skel/project_types/silverstripe3/public/project/code/Pages/Page.php
|
1312
|
+
- skel/project_types/silverstripe3/public/project/javascript/.gitkeep
|
1313
|
+
- skel/project_types/silverstripe3/public/themes/project/css/.gitkeep
|
1294
1314
|
- skel/project_types/silverstripe3/public/themes/project/images/apple-touch-icon-114x114-precomposed.png
|
1295
1315
|
- skel/project_types/silverstripe3/public/themes/project/images/apple-touch-icon-72x72-precomposed.png
|
1296
1316
|
- skel/project_types/silverstripe3/public/themes/project/images/apple-touch-icon.png
|
1297
1317
|
- skel/project_types/silverstripe3/public/themes/project/images/favicon.png
|
1318
|
+
- skel/project_types/silverstripe3/public/themes/project/templates/Includes/.gitkeep
|
1298
1319
|
- skel/project_types/silverstripe3/public/themes/project/templates/Layout/Page.ss
|
1299
1320
|
- skel/project_types/silverstripe3/public/themes/project/templates/Layout/Security.ss
|
1300
1321
|
- skel/project_types/silverstripe3/public/themes/project/templates/Page.ss
|
File without changes
|
File without changes
|
File without changes
|