-
Notifications
You must be signed in to change notification settings - Fork 553
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
Thor::Runner needs to be improved #29
Comments
I made a workaround which is actually pretty decent. def self.source_root .bash_profile export TEMPLATE_PATH=~/Development/Languages/Ruby/Templates Then I just create a new directory for each thor task under THOR_TEMPLATE_PATH and then copy the templates dir into this dir, fx THOR_TEMPLATE_PATH/my_thor_task/templates I will now try to fork thor and patch it with this or a similar solution. |
The Thor repository root is at
I have now added an option to deploy a task. This will create a task package, with the task code in a separate dir with a
This latest version expects the thor file and supporting ruby code to all reside in a /my_task + lib - mythor.thor + templates Enjoy! |
Yes, I hear your pain. We need to improve the I've seen you've done a lot of work in your fork, but it's kinda of mixed. You are improving several parts and adding new features, so it makes hard to review. Sorry, I should have reviewed it earlier but I'm quite busy lately. Are you interested in starting a new branch and port your Thor::Runner refactor? We can discuss the new features as we go. If you don't have my private e-mail, please send me a message and I will reply! Thanks! |
Yeah, let us start a new branch. What should we call it? 'runner-upgrade' ? |
Closing since this is too old. If you still have the problem please let us know. |
I created a thor task to generate a new thor task project and one to create a skeleton ruby project.
In both cases I have a templates dir with the template files for the template statement.
They both run fine locally, but when I install the gem, only the thor file itself seems to be installed, not its templates dir. This seems a reasonable default, but how do I then force thor to deploy other files/dirs as part of the thor task?
I think I might instead have to build a generator gem with binaries? Seems like thor is only suitable in the simplest cases?
The text was updated successfully, but these errors were encountered: