This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
tap /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History | ||
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
Tapfile | ||
| |
bin/ | ||
| |
cgi/ | ||
| |
cmd/ | ||
| |
doc/ | ||
| |
images/ | ||
| |
lib/ | ||
| |
public/ | ||
| |
specs/ | ||
| |
tap.gemspec | ||
| |
template/ | ||
| |
test/ | ||
| |
vendor/ |
README
= {Tap (Task Application)}[http://tap.rubyforge.org]
A framework for creating configurable, distributable tasks and workflows.
== Description
Tap tasks are designed to be easy to test, subclass, use in scripts, and run
from the command line. Tap provides methods to join tasks into imperative
and dependecy-based workflows, utilize static config files, as well as dump
and reuse results. Task libraries are readily shared as gems.
Check out these links for tutorials, development, and bug tracking.
* {Tutorial}[link:files/doc/Tutorial.html], {Class}[link:files/doc/Class%20Reference.html],
{Command}[link:files/doc/Command%20Reference.html], and {Syntax}[link:files/doc/Syntax%20Reference.html] References
* Website[http://tap.rubyforge.org]
* Lighthouse[http://bahuvrihi.lighthouseapp.com/projects/9908-tap-task-application/tickets]
* Github[http://github.com/bahuvrihi/tap/tree/master]
* {Google Group}[http://groups.google.com/group/ruby-on-tap]
=== Features
- Tap and Rake[http://rake.rubyforge.org/] are targeted at different problems,
but play well together. See the {Tutorial}[link:files/doc/Tutorial.html].
- Tap is tested on MRI (the standard Ruby interpreter, versions 1.8.6 and
1.9.0) and JRuby[http://jruby.codehaus.org/].
=== Usage
A simple task illustrates the usage of tap:
[lib/goodnight.rb]
# Goodnight::manifest your basic goodnight moon task
# Says goodnight with a configurable message.
class Goodnight < Tap::Task
config :message, 'goodnight' # a goodnight message
def process(name)
log(message, name)
"#{message} #{name}"
end
end
Tap pulls documentation out of task classes to generate manifests:
% tap run -T
sample:
goodnight # your basic goodnight moon task
tap:
dump # the default dump task
load # the default load task
rake # run rake tasks
And help:
% tap run -- goodnight --help
Goodnight -- your basic goodnight moon task
--------------------------------------------------------------------------------
Says goodnight with a configurable message.
--------------------------------------------------------------------------------
usage: tap run -- goodnight NAME
configurations:
--message MESSAGE a goodnight message
options:
-h, --help Print this help
--name NAME Specify a name
--use FILE Loads inputs from file
Tasks are immediately available to run through tap or rap:
% tap run -- goodnight moon
I[00:09:55] goodnight moon
% rap goodnight moon --message hello
I[00:10:01] hello moon
Tap comes with generators. To get started:
% tap generate root sample
% cd sample
% tap generate task goodnight
% rap goodnight moon
=== Bugs/Known Issues
- Some inconsequential tests on JRuby fail due to bugs in JRuby itself.
- Joins, Parser, and Schema require additional documentation and may be
internally reworked. The workflow syntax should remain the same.
== Installation
Tap is available as a gem on RubyForge[http://rubyforge.org/projects/tap]. Use:
% gem install tap
Tap requires an updated version of RubyGems[http://docs.rubygems.org/] (>= 1.2.0). To check the version and update
RubyGems:
% gem --version
% gem --update system
== Info
Copyright (c) 2006-2008, Regents of the University of Colorado.
Developer:: {Simon Chiang}[http://bahuvrihi.wordpress.com], {Biomolecular Structure Program}[http://biomol.uchsc.edu/],
{Hansen Lab}[http://hsc-proteomics.uchsc.edu/hansenlab/]
Support:: CU Denver School of Medicine Deans Academic Enrichment Fund
Licence:: {MIT-Style}[link:files/MIT-LICENSE.html]








