obbistrano 1.1.99 → 1.1.101
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/lib/obbistrano_tasks.rb +15 -8
- data/obbistrano.gemspec +1 -1
- metadata +2 -2
data/lib/obbistrano_tasks.rb
CHANGED
@@ -223,7 +223,13 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
223
223
|
|
224
224
|
desc "Clears the application's log files from tmp/log."
|
225
225
|
task :clearlogs, :roles =>[:web] do
|
226
|
-
|
226
|
+
pretty_print "--> Clearing application logs from tmp/log"
|
227
|
+
begin
|
228
|
+
run "cd #{deploy_to} && find tmp/log -type f -exec rm -f \"{}\" \\;"
|
229
|
+
puts_ok
|
230
|
+
rescue
|
231
|
+
puts_fail
|
232
|
+
end
|
227
233
|
end
|
228
234
|
|
229
235
|
|
@@ -238,10 +244,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
238
244
|
run "rm -f /etc/apache2/sites-enabled/#{user_to_config}.conf; ln -s /home/#{user_to_config}/#{deploy_to}/app/platform/apache.conf /etc/apache2/sites-enabled/#{user_to_config}.conf"
|
239
245
|
end
|
240
246
|
user_cron_tasks = capture("cat #{deploy_to}/app/platform/crontab")
|
241
|
-
|
247
|
+
pretty_print "--> Writing User Cron File"
|
242
248
|
write_crontab(user_cron_tasks)
|
249
|
+
puts_ok
|
243
250
|
rescue
|
244
|
-
|
251
|
+
puts_fail
|
245
252
|
end
|
246
253
|
end
|
247
254
|
|
@@ -379,7 +386,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
379
386
|
run "cat /etc/debian_version"
|
380
387
|
set :os_ver, "ubuntu"
|
381
388
|
rescue
|
382
|
-
puts "
|
389
|
+
puts "--> Operating System could not be detected or is not supported" if !defined? "#{os_ver}".red
|
390
|
+
puts_fail
|
383
391
|
exit if !defined? "#{os_ver}"
|
384
392
|
end
|
385
393
|
eval "#{os_ver}".testos
|
@@ -416,9 +424,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
416
424
|
pretty_print "Logged in ok"
|
417
425
|
puts_ok
|
418
426
|
rescue
|
419
|
-
print "
|
427
|
+
print "--> The user does not yet exist. Would you like to create? [Y/N]"
|
420
428
|
line = STDIN.gets.upcase.strip
|
421
|
-
puts "
|
429
|
+
puts "--> Could not continue as the login does not exist" if line !="Y".red
|
422
430
|
puts_fail
|
423
431
|
exit if line != "Y"
|
424
432
|
setup_user
|
@@ -512,7 +520,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
512
520
|
paths.each do |bundle_directory|
|
513
521
|
pretty_print "--> directory: #{bundle_directory}"
|
514
522
|
bundle_name = bundle_directory.gsub("#{build_to}/", "").gsub("plugins/", "").gsub("/resources/public/stylesheets", "").gsub("public/stylesheets/", "")
|
515
|
-
|
523
|
+
pretty_print "--> bundle name: #{bundle_name}"
|
516
524
|
next if bundle_name.empty?
|
517
525
|
files = recursive_file_list(bundle_directory, ".css")
|
518
526
|
next if files.empty? || bundle_name == 'dev'
|
@@ -642,7 +650,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
642
650
|
puts_fail
|
643
651
|
end
|
644
652
|
end
|
645
|
-
puts_ok
|
646
653
|
end
|
647
654
|
|
648
655
|
desc "Updates composer"
|
data/obbistrano.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{obbistrano}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.101"
|
6
6
|
s.authors = ["Ross Riley", "One Black Bear"]
|
7
7
|
s.date = Time.now
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|