Hello!
I have attached a patch made against revision 605291.
Changes:
profile => always returns the current profile
profiles => return a hash of profiles
https://issues.apache.org/jira/browse/BUILDR-6
Regards,
Yanko
On Dec 17, 2007, at 5:47 PM, Assaf Arkin wrote:
On 12/17/07, Yanko Ivanov <[EMAIL PROTECTED]> wrote:
Hello all!
An implementation against profiles support in Buildr is attached as a
patch file. The patch was made against revision 604892 of the trunk (
http://svn.apache.org/repos/asf/incubator/buildr/trunk
)
However as I am not an experienced Ruby programmer my Ruby style is
definitely ugly... please feel free to make changes for good :)
As my mother language is not English, it would be a good idea to
check
the RDoc for mistakes.
p.s. It was fun using ruby :)
It is a fun language :-)
Looks good. I'm thinking maybe we should have:
profile => always returns the current profile
profiles => return a hash of profiles
With a hash, you can easily retrieve a particular profile, like
profiles['development'], list all the profiles, add or change them
in code,
etc. You can do fallback, e.g.:
profiles['qa'] || profiles['test']
Assaf
Regards,
Yanko