Tackling the generator script. - Robert
Added the bin/spec_wire stub to github. - Robert
Although, I only got spec_wire.gemspec when I pulled via git.
Any thoughts on how to add this so it is automatically in the user's
path? Like the 'rails' command?
Ed
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland
> --
> Post: spec...@googlegroups.com
> Subscribe: spec_wire...@googlegroups.com
> Unsubscribe: spec_wire+...@googlegroups.com
> Website: http://groups.google.com/group/spec_wire
>
That's because of me and my branching. I have it in my experimental
branch. Let me merge and commit again.
> Any thoughts on how to add this so it is automatically in the user's
> path? Like the 'rails' command?
Not sure. Need to think about it.
You up for a Skype later this afternoon? Sometime between 3 and 4pm?
Got some errands to run and should be back by then.
BTW, fixed the keys on my keyboard. Am definitely not going to pop
the keys of off this keyboard again. What a pain.
Regards,
- Robert
Here's a list of the files/folders I've discovered so far on my Ubuntu
9.04 machine:
/usr/bin/rails : a bash script that calls rails and uses the rails folder
/usr/share/rails/railties/bin/rails : a ruby script that requires
rails_generator
/usr/share/rails/railties/lib/rails_generator.rb : a ruby module
/usr/share/rails/railties/lib/rails_generator/ : a folder for the
ruby_generator.rb script
/usr/share/rails/ : folder where the templates are located
Are these the files I should be exploring to create a spec_wire generator?
BTW, did see any erb stuff in any of them. But then I only glanced over them.
Regards,
- Robert
Ed
They may not have an ERb component.
BTW, I am redoing the existing templates folder from what it currently
exists like on Github.
Stay tuned.
Cheers,
Ed
From what you discovered, re: apt-get pkg, it seems to just install it
in /usr/bin where Ruby itself is installed. On my Mac it is
/usr/local/bin/rails
Somehow, it figures out where Ruby is and installs it there. Mayve via
a system('which ruby')??
And then, there must be something in the gemspec that tells it to copy
scripts somewhere.
Ed
Regards,
- Robert