summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-13 23:40:43 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-13 23:40:43 -0400
commit8e3ca1d64444408677c93721c198908de43fa417 (patch)
treea50c1abee4178190546321721c417fb2399c3688 /bin
parent16f51fd9dc454b26d9866b080caa17ffe2f8ce27 (diff)
Added more descriptive thor task descriptions.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dashing6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dashing b/bin/dashing
index a9e6022..e363ee2 100755
--- a/bin/dashing
+++ b/bin/dashing
@@ -44,13 +44,13 @@ module Dashing
File.expand_path('../../templates', __FILE__)
end
- desc "new PROJECT_NAME", "Sets up ALL THE THINGS needed for your dashboard project structure."
+ desc "new PROJECT_NAME", "Sets up ALL THE THINGS needed for your dashboard project."
def new(name)
@name = Thor::Util.snake_case(name)
directory :project, @name
end
- desc "generate GENERATOR NAME", "Creates a new wigdget, dashboard, or job."
+ desc "generate (widget/dashboard/job) NAME", "Creates a new widget, dashboard, or job."
def generate(type, name)
send("generate_#{type}".to_sym, name)
rescue NoMethodError => e
@@ -68,7 +68,7 @@ module Dashing
end
map "s" => :start
- desc "job JOB_NAME AUTH_TOKEN(optional)", "Runs the specified job."
+ desc "job JOB_NAME AUTH_TOKEN(optional)", "Runs the specified job. Make sure to supply your auth token if you have one set."
def job(name, auth_token = "")
Dir[File.join(Dir.pwd, 'lib/**/*.rb')].each {|file| require file }
self.class.auth_token = auth_token