Skip to content

Instantly share code, notes, and snippets.

@ileitch
Created August 13, 2010 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ileitch/522308 to your computer and use it in GitHub Desktop.
Save ileitch/522308 to your computer and use it in GitHub Desktop.
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