chef/cookbooks/composer/recipes/self_update.rb
Greg Karékinian a32f34b408 Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in
the repo is convenient again
2019-10-13 19:17:42 +02:00

17 lines
328 B
Ruby

#
# Cookbook Name:: composer
# Recipe:: self_update
#
# Copyright (c) 2016, David Joos
#
include_recipe 'composer::install'
execute 'composer-self_update' do
cwd node['composer']['install_dir']
command 'composer self-update'
environment 'COMPOSER_HOME' => Composer.home_dir(node)
action :run
ignore_failure true
end