Sha256: 57ca2639e81e98ec0447bf6f2e58f7f8ca97aa53f387f70aaa7c4eeea5ed1381

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

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
  case @environment
  when 'development'
    command "curl http://localhost:#{@port}/cron"
  else
    command "curl https://sumapp.com/#{key}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sum-0.1.2 config/schedule.rb