Skip to content

Instantly share code, notes, and snippets.

@Lumbendil
Created February 19, 2014 14:15
Show Gist options
  • Select an option

  • Save Lumbendil/9092972 to your computer and use it in GitHub Desktop.

Select an option

Save Lumbendil/9092972 to your computer and use it in GitHub Desktop.
set :composer_configuration, "github-oauth.github.com GITHUBOAUTHKEY"
namespace :composer do
desc "Configure composer to avoid github rate limit issues"
task :configure do
capifony_pretty_print "--> Configuring composer"
run "#{try_sudo} sh -c 'cd #{latest_release} && #{php_bin} composer.phar config #{composer_configuration}'"
capifony_puts_ok
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment