-
-
Save yfeldblum/2363520 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
original_pear_version = nil | |
ruby_block "check_pear_version" do | |
block do | |
original_pear_version = %x[ pear -V 2>&1 ].match(/PEAR.*(\d+\.\d+\.\d+)/)[1] | |
original_pear_version = Gem::Version.create(original_pear_version) | |
end | |
end | |
declared_pear_version = Gem::Version.create("1.6.1") | |
php_pear "PEAR" do | |
version declared_pear_version.to_s | |
options "--force" | |
action :install | |
only_if { original_pear_version != declared_pear_version } | |
end |
Author
yfeldblum
commented
Apr 12, 2012
via email
No problem, and thanks for the compliments!
…On Wed, Apr 11, 2012 at 9:24 PM, Patrick Connolly < ***@***.*** > wrote:
Thanks @yfeldblum -- really appreciate that you took the time, even though
I had to unceremoniously bail :)
Funny, I was thinking conciseness was important above all else, but
sometimes I forget about legibility and self-documentation. If only just
from the way you manage the librarian project, you've totally got my
respect, and I take any advice to heart in informing my future ruby'ing!
---
Reply to this email directly or view it on GitHub:
https://gist.github.com/2363520
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment