Skip to content

Commit

Permalink
Fixed (hopefully) path to sample data, so it will load
Browse files Browse the repository at this point in the history
Removed handler for /
  • Loading branch information
krisalyssa committed Jan 5, 2011
1 parent c19ceb4 commit f9f8fc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cron_timeline.rb
Expand Up @@ -3,14 +3,14 @@
require 'json'
require File.expand_path(File.join(File.dirname(__FILE__), 'models', 'parse_cron'))

get "/" do
"Hello from Sinatra on Heroku!"
end
# get "/" do
# "Hello from Sinatra on Heroku!"
# end

get "/cron" do
# cron_jobs = ['*/15 * * 1 * whoami','*/30 * * 1 * uname' ]
# cron_jobs = `crontab -l`
cron_jobs = File.readlines("cronfile.txt")
cron_jobs = File.readlines(File.expand_path(File.join(File.dirname(__FILE__), 'cronfile.txt')))
hr_window = 2
erb :cron, :locals => { :json => to_timeline_hash(cron_jobs,hr_window).to_json }
end
Expand Down

0 comments on commit f9f8fc8

Please sign in to comment.