Skip to content

Commit

Permalink
Hudson deps
Browse files Browse the repository at this point in the history
  • Loading branch information
quamen committed Oct 25, 2010
1 parent 4e52255 commit 2228304
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hudson.rb
@@ -0,0 +1,19 @@
dep 'hudson' do

requires 'java'

met? do
result = shell('dpkg -s hudson')
result && result['Status: install ok installed']
end

meet do
shell('wget -O /tmp/hudson-apt-key http://hudson-ci.org/debian/hudson-ci.org.key')
sudo('apt-key add /tmp/hudson-apt-key')
shell('rm /tmp/hudson-apt-key')
shell('wget -O /tmp/hudson.dep http://hudson-ci.org/latest/debian/hudson.deb')
sudo('dpkg --install /tmp/hudson.dep')
shell('rm /tmp/hudson.dep')
end

end
3 changes: 3 additions & 0 deletions java.rb
@@ -0,0 +1,3 @@
dep "default-jre.managed" do
provides ["java"]
end

0 comments on commit 2228304

Please sign in to comment.