Morgan Packard
2008-Aug-01 21:32 UTC
noob question -- where are rake files/tasks/scripts located
Hi there, Just getting my feet wet with rails (and ruby) and want to poke around a little. Could anyone tell me where to find the file executed by rake, for example, with the command rake db:migrate. thanks! -Morgan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2008-Aug-01 22:16 UTC
Re: noob question -- where are rake files/tasks/scripts located
> Just getting my feet wet with rails (and ruby) and want to poke around > a little. Could anyone tell me where to find the file executed by > rake, for example, with the command rake db:migrate.If you''ve vendor''d rails (and you should) you''ll find them here: RAILS_ROOT/vendor/rails/railties/lib/tasks You''re own custom ones go into: RAILS_ROOT/lib/tasks -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Morgan Packard
2008-Aug-01 22:26 UTC
Re: noob question -- where are rake files/tasks/scripts located
thanks Phillip Uh, haven''t vendored rails, don''t know what that means yet. Any idea where rake gets its instructions for db:migrate if I haven''t vendored rails. -Morgan On Aug 1, 6:16 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > Just getting my feet wet with rails (and ruby) and want to poke around > > a little. Could anyone tell me where to find the file executed by > > rake, for example, with the command rake db:migrate. > > If you''ve vendor''d rails (and you should) you''ll find them here: > > RAILS_ROOT/vendor/rails/railties/lib/tasks > > You''re own custom ones go into: > > RAILS_ROOT/lib/tasks > > -philip--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2008-Aug-01 23:14 UTC
Re: noob question -- where are rake files/tasks/scripts located
> thanks Phillip > > Uh, haven''t vendored rails, don''t know what that means yet. Any idea > where rake gets its instructions for db:migrate if I haven''t vendored > rails./usr/lib/ruby/gems/....../rails/..... Somewhere down there :) "vendoring rails" means that you copy everything you need for rails into vendors/rails so that when you move it to another server you don''t have to deal with installing the rails gem and it''s friends... % rake -T freeze for more info... (and google) -philip> -Morgan > > On Aug 1, 6:16 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote: >>> Just getting my feet wet with rails (and ruby) and want to poke >>> around >>> a little. Could anyone tell me where to find the file executed by >>> rake, for example, with the command rake db:migrate. >> >> If you''ve vendor''d rails (and you should) you''ll find them here: >> >> RAILS_ROOT/vendor/rails/railties/lib/tasks >> >> You''re own custom ones go into: >> >> RAILS_ROOT/lib/tasks >> >> -philip > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Aug-01 23:14 UTC
Re: noob question -- where are rake files/tasks/scripts located
On Aug 1, 11:26 pm, Morgan Packard <hellomorganpack...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> thanks Phillip > > Uh, haven''t vendored rails, don''t know what that means yet. Any idea > where rake gets its instructions for db:migrate if I haven''t vendored > rails. >vendoring rails just means that the gems that make up rails are unpacked into your_app/vendor/rails if you haven''t then the rake files will be inside where ruby keeps its gems. Depending on your setup this will be something like /usr/local/ lib/ruby/gems/1.8/gems/rails-2.1.0/lib/tasks Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Morgan Packard
2008-Aug-02 04:08 UTC
Re: noob question -- where are rake files/tasks/scripts located
thanks Phillip! On Aug 1, 7:14 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote:> > thanks Phillip > > > Uh, haven''t vendored rails, don''t know what that means yet. Any idea > > where rake gets its instructions for db:migrate if I haven''t vendored > > rails. > > /usr/lib/ruby/gems/....../rails/..... > > Somewhere down there :) > > "vendoring rails" means that you copy everything you need for rails > into vendors/rails so that when you move it to another server you > don''t have to deal with installing the rails gem and it''s friends... > > % rake -T freeze > > for more info... (and google) > > -philip > > > -Morgan > > > On Aug 1, 6:16 pm, Philip Hallstrom <phi...-LSG90OXdqQE@public.gmane.org> wrote: > >>> Just getting my feet wet with rails (and ruby) and want to poke > >>> around > >>> a little. Could anyone tell me where to find the file executed by > >>> rake, for example, with the command rake db:migrate. > > >> If you''ve vendor''d rails (and you should) you''ll find them here: > > >> RAILS_ROOT/vendor/rails/railties/lib/tasks > > >> You''re own custom ones go into: > > >> RAILS_ROOT/lib/tasks > > >> -philip--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---