Created
August 13, 2010 04:49
-
-
Save ileitch/522308 to your computer and use it in GitHub Desktop.
This file contains 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
class DebArchive < Archive | |
def content_subdir | |
"." | |
end | |
def extract_command | |
"" | |
end | |
end | |
Archive.CLASSES.merge! :deb => DebArchive | |
dep 'ree', :template => '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") | |
} | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment