mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 12:27:35 -05:00
11 lines
330 B
Ruby
11 lines
330 B
Ruby
|
gem_package 'chef' do
|
||
|
action :purge
|
||
|
only_if do
|
||
|
Chef::Provider::Package::Rubygems.new(
|
||
|
Chef::Resource::GemPackage.new('dummy_package')
|
||
|
).gem_env.gem_paths.detect{|path|
|
||
|
path.start_with?('/opt/omnibus') || path.start_with?('/opt/chef')
|
||
|
}.nil? && node[:omnibus_updater][:remove_chef_system_gem]
|
||
|
end
|
||
|
end
|