From 5da920a77b5b9309fa888d58aa2f7100a14c29b8 Mon Sep 17 00:00:00 2001 From: Simon Szustkowski Date: Thu, 11 Oct 2012 16:55:11 +0200 Subject: [PATCH] RVM-Wrapper eingebaut, nur zwecks Backup committet,bitte ignorieren --- bot.rb | 4 ++-- exec.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 exec.sh diff --git a/bot.rb b/bot.rb index a5acf0b..52e853a 100755 --- a/bot.rb +++ b/bot.rb @@ -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 \ No newline at end of file + client.update(tweet) +end diff --git a/exec.sh b/exec.sh new file mode 100755 index 0000000..b9b8d58 --- /dev/null +++ b/exec.sh @@ -0,0 +1,6 @@ +#! /usr/bin/env bash + +cd /home/simonszu/opt/CTDO-Status +source .rvmrc > /dev/null + +ruby bot.rb