aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cvs2svn.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-19 20:45:58 -0600
committerJack Nagel2013-01-21 17:24:12 -0600
commitb48e89cbb2a14a935626c64f5e19044bc2b08d85 (patch)
treef04776f4f9052aa47145eb2f9bcf1c3e2fb4e450 /Library/Formula/cvs2svn.rb
parent3f1eb3d18a417589f91c6aee4effe750440e2adc (diff)
downloadhomebrew-b48e89cbb2a14a935626c64f5e19044bc2b08d85.tar.bz2
Allow satisfied? to be specified in a block
Instead of overriding #satisfied?, Requirement subclasses can specify the condition in a block: satisfy do some_condition? end The contents of the block are evaluated in the context of the instance, and so have access to instance variables and instance methods as before. Additionally, it is wrapped in an ENV.with_build_environment block. This can be disabled by passing :build_env => false to satisfy: satisfy :build_env => false do some_condition? end
Diffstat (limited to 'Library/Formula/cvs2svn.rb')
0 files changed, 0 insertions, 0 deletions