Skip to content

Instantly share code, notes, and snippets.

@s-e
Last active December 27, 2015 10:18
Show Gist options
  • Save s-e/7309712 to your computer and use it in GitHub Desktop.
Save s-e/7309712 to your computer and use it in GitHub Desktop.
joindin::composer() {
exec { 'composer':
command => "/usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php && \
mv composer.phar /usr/local/bin/composer",
require => [Package['php'], Package['php-pear']],
creates => "/usr/local/bin/composer",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment