Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update ree.src -> ree to use Resource.get instead of the old #process…

…_source.
  • Loading branch information...
commit 6ed52800421ffec13aa1dfdcda0fc936117835b7 1 parent 9655ac3
@benhoskings authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 deb.rb
View
14 deb.rb
@@ -1,7 +1,11 @@
-dep 'ree.src' do
- source "http://rubyforge.org/frs/download.php/71098/ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb"
- process_source {
- sudo("dpkg -i ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb")
+dep 'ree' do
+ def source
+ "http://rubyforge.org/frs/download.php/71098/ruby-enterprise_1.8.7-2010.02_amd64_ubuntu10.04.deb"
+ end
+ met? { shell("ruby --version")["ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02"] }
+ meet {
+ Babushka::Resource.get(source) {|path|
+ sudo("dpkg -i #{path}")
+ }
}
- met? { shell("ruby --version") =~ /#{Regexp.escape("ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02")}/ }
end
Please sign in to comment.
Something went wrong with that request. Please try again.