global rake tasks

Discussion in 'Ruby' started by Esad Hajdarevic, Oct 9, 2006.

  1. Hi!

    Does rake support some kind of 'global' tasks that would be loaded
    from ~/.rake or some similar directory?

    I'd like to have some admin tasks or some subversion related tasks (like
    svn:tag that tags the trunk as appropriate VERSION and automatically
    fills the changelog) globally defined.

    I know that with rails, you can place the tasks in lib/rake, but most of
    the projects are not rails related.

    Greetings,

    Esad
    Esad Hajdarevic, Oct 9, 2006
    #1
    1. Advertising

  2. Esad Hajdarevic

    Kalman Noel Guest

    Esad Hajdarevic:
    > Does rake support some kind of 'global' tasks that would be loaded
    > from ~/.rake or some similar directory?


    $ rake --help | grep -B 1 "import\|equire"
    --libdir=LIBDIR (-I)
    Include LIBDIR in the search path for required modules.
    --
    --rakelibdir=RAKELIBDIR (-R)
    Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
    --require=MODULE (-r)
    Require MODULE before executing rakefile.

    A shell alias will then save you typing.

    Kalman
    Kalman Noel, Oct 9, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Francis Hwang
    Replies:
    0
    Views:
    225
    Francis Hwang
    May 26, 2006
  2. Esad Hajdarevic

    rakelibdir (was: Global rake tasks)

    Esad Hajdarevic, Oct 16, 2006, in forum: Ruby
    Replies:
    0
    Views:
    86
    Esad Hajdarevic
    Oct 16, 2006
  3. Replies:
    6
    Views:
    200
  4. peppermonkey
    Replies:
    1
    Views:
    220
    Gregory Brown
    Feb 10, 2007
  5. John Feminella
    Replies:
    0
    Views:
    224
    John Feminella
    Apr 25, 2010
Loading...

Share This Page