require 'rubygems' begin gem 'winton-secret_key', '=0.1.0' rescue Exception $:.unshift "#{File.dirname(__FILE__)}/vendor/winton-secret_key/lib" end require 'secret_key' key = SecretKey.new(File.dirname(__FILE__)).read every 1.minute do puts @environment case @environment when 'development' command "curl http://localhost:#{@port}/cron" else command "curl https://sumapp.com/#{key}" end end