summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-08 18:02:56 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-08 18:06:58 -0400
commit780fe49f715c2fced88e958b02541bf8e7dca934 (patch)
tree7cd147e96913c9f95cda54f4bd341d0630e34c66 /bin
parentcdd8ff258582f5eba7e3941a5a18007e7aabbbfa (diff)
Rename project to 'Dashing', and do some other cleanups
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dashing (renamed from bin/things)7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/things b/bin/dashing
index 0ad9eb3..32c89c8 100755
--- a/bin/things
+++ b/bin/dashing
@@ -13,14 +13,14 @@ end
def send_event(id, data)
req = Net::HTTP::Post.new("/widgets/#{id}")
req["content-type"] = "application/json"
- req.body = JSON.unparse(data.merge(:auth_token => AllTheThings::CLI.auth_token))
+ req.body = JSON.unparse(data.merge(:auth_token => Dashing::CLI.auth_token))
res = Net::HTTP.new('localhost', 3000).start { |http| http.request(req) }
puts "Data Sent to #{id}: #{data}"
end
SCHEDULER = MockScheduler.new
-module AllTheThings
+module Dashing
class CLI < Thor
include Thor::Actions
@@ -66,6 +66,7 @@ module AllTheThings
command.prepend "export JOB_PATH=#{options[:job_path]}; " if options[:job_path]
system(command)
end
+ map "s" => :start
desc "job JOB_NAME AUTH_TOKEN(optional)", "Runs the specified job."
def job(name, auth_token = "")
@@ -78,4 +79,4 @@ module AllTheThings
end
end
-AllTheThings::CLI.start \ No newline at end of file
+Dashing::CLI.start \ No newline at end of file