Permalink
Browse files

composer

  • Loading branch information...
1 parent 1ae0747 commit 5dcffeb02dc0dd29f3281f49c3237c5e57571391 Roderik van der Veer committed Dec 7, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 recipes/composer.rb
View
@@ -0,0 +1,23 @@
+
+if File.exists?("/usr/local/bin/composer")
+
+ bash "update_composer" do
+ user "root"
+ cwd "/tmp"
+ code <<-EOH
+ /usr/local/bin/composer self-update
+ EOH
+ end
+
+else
+
+ bash "install_composer" do
+ user "root"
+ cwd "/tmp"
+ code <<-EOH
+ curl -s https://getcomposer.org/installer | php
+ mv composer.phar /usr/local/bin/composer
+ EOH
+ end
+
+end

0 comments on commit 5dcffeb

Please sign in to comment.