summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-02 13:38:19 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-02 13:38:19 -0400
commitcdd8ff258582f5eba7e3941a5a18007e7aabbbfa (patch)
tree259644bbbda24070efc5685445e6b26187a70b20 /lib
parent1dcf732b801f9fa513901fda27388a36eddb44ab (diff)
Better generators, sample widgets, and more!
Diffstat (limited to 'lib')
-rw-r--r--lib/allthethings.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/allthethings.rb b/lib/allthethings.rb
index 904a991..8fbef07 100644
--- a/lib/allthethings.rb
+++ b/lib/allthethings.rb
@@ -54,7 +54,6 @@ get '/views/:widget?.html' do
end
post '/widgets/:id' do
- protected!
request.body.rewind
body = JSON.parse(request.body.read)
auth_token = body.delete("auth_token")
@@ -125,5 +124,6 @@ def first_dashboard
files.first
end
-files = Dir[Dir.pwd + '/jobs/*.rb']
+job_path = ENV["JOB_PATH"] || 'jobs'
+files = Dir[Dir.pwd + "/#{job_path}/*.rb"]
files.each { |job| require(job) } \ No newline at end of file