15 lines
398 B
Ruby
15 lines
398 B
Ruby
# encoding: utf-8
|
|
namespace :system_check do
|
|
task :god_can_start => :environment do
|
|
unless File.directory? "/var/log/rulingcom"
|
|
puts "Creating Rulingcom log folder"
|
|
`sudo mkdir -p /var/log/rulingcom`
|
|
end
|
|
end
|
|
task :set_resque_namespace,[:namespace] => :environment do |t,args|
|
|
site = Site.first
|
|
site.resque_namespace = args[:namespace]
|
|
site.save
|
|
end
|
|
end
|