Skip to content

Commit 7f3b8c4

Browse files
committed
Uninstall fullstaq-ruby repo at the beginning of recipe
1 parent 360fb57 commit 7f3b8c4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

recipes/setup.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
# Recipe:: setup
66
#
77

8+
if node['ruby-provider'] != 'fullstaq'
9+
apt_repository 'fullstaq-ruby' do
10+
action :remove
11+
end
12+
end
13+
814
include_recipe 'apt'
915
include_recipe 'nodejs'
1016

@@ -182,14 +188,6 @@
182188
version '~> 1' unless bundler2_applicable
183189
end
184190
else
185-
apt_repository 'fullstaq-ruby' do
186-
action :remove
187-
end
188-
189-
package 'fullstaq-ruby' do
190-
action :remove
191-
end
192-
193191
chruby_pgp_key_path = ::File.join(Chef::Config[:file_cache_path], 'chruby.tar.gz.asc')
194192
tar_path = ::File.join(Chef::Config[:file_cache_path], 'chruby.tar.gz')
195193
postmodern_pgp_key_path = ::File.join(Chef::Config[:file_cache_path], 'postmodern.asc')

0 commit comments

Comments
 (0)