bonethug 0.0.15 → 0.0.16
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/config/deploy.rb +7 -1
- data/lib/bonethug/installer.rb +7 -1
- data/lib/bonethug/version.rb +1 -1
- metadata +2 -2
data/config/deploy.rb
CHANGED
@@ -74,6 +74,12 @@ task :setup => :environment do
|
|
74
74
|
queue! %[mkdir -p "#{deploy_to}/shared/#{path}"]
|
75
75
|
end
|
76
76
|
|
77
|
+
# set appropriate permissions on the resource dirs
|
78
|
+
resources.each do |path|
|
79
|
+
queue! %[chown -R www-data:www-data "#{deploy_to}/shared/#{path}"]
|
80
|
+
queue! %[chmod -R 0775 "#{deploy_to}/shared/#{path}"]
|
81
|
+
end
|
82
|
+
|
77
83
|
# set appropriate permissions on the logs
|
78
84
|
log_dirs.each do |path|
|
79
85
|
queue! %[chown -R www-data:www-data "#{deploy_to}/shared/#{path}"]
|
@@ -240,7 +246,7 @@ task :deploy => :environment do
|
|
240
246
|
queue! %[/etc/init.d/apache2 reload]
|
241
247
|
invoke :'whenever:update'
|
242
248
|
|
243
|
-
queue! %[php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
|
249
|
+
queue! %[export APPLICATION_ENV=#{env} && php #{deploy_to}/current/public/framework/cli-script.php dev/build] if ['silverstripe','silverstripe3'].include? deploy.get('project_type')
|
244
250
|
|
245
251
|
end
|
246
252
|
end
|
data/lib/bonethug/installer.rb
CHANGED
@@ -218,10 +218,16 @@ module Bonethug
|
|
218
218
|
# handle gemfile
|
219
219
|
gemfile_path = target + '/Gemfile'
|
220
220
|
if File.exist? gemfile_path
|
221
|
+
|
221
222
|
gemfile_contents = File.read(gemfile_path)
|
223
|
+
|
222
224
|
unless /gem ["']bonethug["']/ =~ File.read(gemfile_path)
|
223
|
-
|
225
|
+
puts "Couldn't find bonethug in gem file adding..."
|
226
|
+
File.open(gemfile_path,'w') { |file| file.puts gemfile_contents + "\n" + 'gem "bonethug"' }
|
227
|
+
else
|
228
|
+
puts 'Found bonethug in gem file'
|
224
229
|
end
|
230
|
+
|
225
231
|
else
|
226
232
|
FileUtils.cp @@skel_dir + '/base/Gemfile', gemfile_path
|
227
233
|
end
|
data/lib/bonethug/version.rb
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.16
|
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-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|