diff options
author | spag <spag@golwen.net> | 2013-02-13 12:13:39 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-13 12:13:39 +0100 |
commit | 1776a5b243aa7b62eff09319e2f766426307e220 (patch) | |
tree | dc265f5d0c02456b034ac6f50b822948780ff7c3 | |
parent | 2fc71d2c420fcb328165f91806080367a9fa2928 (diff) | |
parent | 7d5aa2333f61ea8a89d52f09f0719e8cd8973c7f (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
-rw-r--r-- | app/models/fax_document.rb | 4 | ||||
-rw-r--r-- | config/schedule.rb | 25 |
2 files changed, 7 insertions, 22 deletions
diff --git a/app/models/fax_document.rb b/app/models/fax_document.rb index be689e2..16fdc70 100644 --- a/app/models/fax_document.rb +++ b/app/models/fax_document.rb @@ -48,10 +48,6 @@ class FaxDocument < ActiveRecord::Base end end - def to_s - name - end - def render_thumbnails directory = "/tmp/GS-#{GsParameter.get('GEMEINSCHAFT_VERSION')}/fax_thumbnails/#{self.id}" system('mkdir -p ' + directory) diff --git a/config/schedule.rb b/config/schedule.rb index 0b5f0ca..94603f1 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,24 +1,13 @@ -# Use this file to easily define all of your cron jobs. +# Daily Backup # -# It's helpful, but not entirely necessary to understand cron before proceeding. -# http://en.wikipedia.org/wiki/Cron - -# Example: -# -# set :output, "/path/to/my/cron_log.log" -# -# every 2.hours do -# command "/usr/bin/some_great_command" -# runner "MyModel.some_method" -# rake "some:great:rake:task" -# end -# -# every 4.days do -# runner "AnotherModel.prune_old_records" -# end - every 1.day, :at => '4:00 am' do rake "backup:daily_backup" end +# Auto-Reboot of Phones which should be rebootet +# +every 1.day, :at => '2:30 am' do + command "/opt/GS5/script/logout_phones.sh" +end + # Learn more: http://github.com/javan/whenever |