-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run and in_root not working #32
Comments
run works fine for me with my recent fork require 'thor/group' require 'active_support/inflector' class Thorcat < Thor::Group include Thor::Actions # Define arguments and options argument :name def run_cat run "cat #{name}" end end $ thor thorcat main.thor run cat main.thor from "." $ |
Can you please add a failing test case in Thor test suite? |
Actually this is not a bug... you just forgot to add 'include Thor::Actions'.. |
Yeah... closing. |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example: http://gist.github.com/328329
Thor gem v 0.13.4
I'm trying to write some simple tasks with thor with no luck. See the above gist which tries to start and stop nginx. When I execute shell commands like
cat #{nginx_pid_path}
it works but when I try to use thor actions like run or in_root, I get errors (below). Why does action say() work, but run() does not?The text was updated successfully, but these errors were encountered: