diff options
author | David Underwood <davefp@gmail.com> | 2013-07-24 08:28:57 -0700 |
---|---|---|
committer | David Underwood <davefp@gmail.com> | 2013-07-24 08:28:57 -0700 |
commit | 98a6195c3495a8af43a2d46e845a4af8607c42fe (patch) | |
tree | 0cc0bdd10959040b312b7abc8ebdf756e1650051 | |
parent | c2fad09e3b3845f80fb6e60f7ceb7e64c60dd633 (diff) | |
parent | 04f967847774d65dffaf0d6d6a8c29211b4fa7ea (diff) |
Merge pull request #171 from mcritchlow/master
add stop command to dashing
-rwxr-xr-x | bin/dashing | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/dashing b/bin/dashing index 30824ce..9d97700 100755 --- a/bin/dashing +++ b/bin/dashing @@ -92,6 +92,12 @@ module Dashing end map "s" => :start + desc "stop", "Stops the thin server" + def stop + command = "bundle exec thin stop" + system(command) + end + 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 } |