RVM-Wrapper eingebaut, nur zwecks Backup committet,bitte ignorieren

This commit is contained in:
Simon Szustkowski 2012-10-11 16:55:11 +02:00
parent e9ba7b34ca
commit 5da920a77b
2 changed files with 8 additions and 2 deletions

4
bot.rb
View File

@ -42,7 +42,7 @@ if (last_status != $current_status)
tweet = "Raumstatus UNBEKANNT."
status = "unknown"
end
client.update(tweet)
$config['worker']['last_status'] = status
File.open(CONFIG_FILE, 'w') { |f| YAML.dump($config, f) }
end
client.update(tweet)
end

6
exec.sh Executable file
View File

@ -0,0 +1,6 @@
#! /usr/bin/env bash
cd /home/simonszu/opt/CTDO-Status
source .rvmrc > /dev/null
ruby bot.rb