rake task library

M

Martin DeMello

Is there any effort underway to compile a rake task library, the way ant
does?

martin
 
G

Gavin Sinclair

Is there any effort underway to compile a rake task library, the way ant
does?

Rake has a few tasks built in and a "secondary" area where new tasks
are tried out.

What exactly do you mean - plugins?

Gavin
 
M

Martin DeMello

Gavin Sinclair said:
Rake has a few tasks built in and a "secondary" area where new tasks
are tried out.

What exactly do you mean - plugins?

See http://ant.apache.org/manual/index.html - it allows a lot of common
tasks to be written declaratively. For instance we could have an
installer package generated by saying

make-installer (
:src => src_dir,
:lib => lib_dir,
:doc => doc_dir,
:installer => 'install.rb'
)

The make-installer method might be complicated, and involve all sorts of
corner cases and tests, but once it's written using it is trivial. Not
so much plugins as a library of common tasks, one to a method, and a
central site where they're maintained.

martin
 
J

Jim Weirich

Martin said:
Is there any effort underway to compile a rake task library, the way ant
does?

There is no organized effort with the specific intention of building a
task library for Rake. However, I consider a well rounded task library
essential for the ultimate success of the project.

The latest release of Rake (release 0.3.0) contains a number of library
tasks for building packages, running tests and building rdocs. The type
of stuff you might need in any Ruby project, which is where I am using
Rake the most right now.

If you have an idea for a task library, I welcome you to sound it out,
either here or on the (e-mail address removed) mailing list.
 
J

Jim Weirich

Martin said:
See http://ant.apache.org/manual/index.html - it allows a lot of common
tasks to be written declaratively. For instance we could have an
installer package generated by saying

make-installer (
:src => src_dir,
:lib => lib_dir,
:doc => doc_dir,
:installer => 'install.rb'
)

Here's an Rakefile example that creates a set of related tasks (named
:package, :repackage, :clobber_package, etc). The task will create both
a zip file and a gzipped tar file.

Rake::packageTask.new("myprogram", "0.0.1") do |p|
p.package_files.include("lib/**/*.rb", "doc/**/*", "Rakefile")
p.package_files.exclude(/\bCVS\b)
p.need_zip = true
p.need_tar = true
end

See http://rake.rubyforge.org/ and check out classes named
Rake::XxxxTask for task library classes.
 
M

Martin DeMello

Jim Weirich said:
If you have an idea for a task library, I welcome you to sound it out,
either here or on the (e-mail address removed) mailing list.

I have some nebulous ideas; I'll work them into a proper post when I
have some free time (regrettably scarce right now :-/).

martin
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,815
Members
47,361
Latest member
RogerDuabe

Latest Threads

Top