@@ -24,15 +24,12 @@ task :release do
24
24
lock_release = root . join ( "Gemfile.lock.release" )
25
25
if lock_release . exist?
26
26
gemfile_lock = lock_release . to_s . chomp ( ".release" )
27
- appliance_dependency = root . join ( "bundler.d/manageiq-appliance-dependencies.rb" )
28
27
29
28
FileUtils . ln_s ( lock_release , gemfile_lock , :force => true )
30
- FileUtils . ln_s ( root . join ( "../manageiq-appliance/manageiq-appliance-dependencies.rb" ) ,
31
- appliance_dependency , :force => true )
32
29
33
30
exit $?. exitstatus unless Bundler . unbundled_system ( { "BUNDLE_IGNORE_CONFIG" => "true" , "APPLIANCE" => "true" } , "bundle lock --update --conservative --patch" )
34
31
35
- FileUtils . rm ( [ appliance_dependency , gemfile_lock ] )
32
+ FileUtils . rm ( gemfile_lock )
36
33
37
34
lock_content = lock_release . read
38
35
lock_release . write ( lock_content . gsub ( "branch: #{ branch } " , "tag: #{ version } " ) )
@@ -206,11 +203,6 @@ namespace :release do
206
203
end
207
204
208
205
begin
209
- require "open-uri"
210
- appliance_deps = URI . parse ( "https://raw.githubusercontent.com/ManageIQ/manageiq-appliance/#{ branch } /manageiq-appliance-dependencies.rb" ) . read
211
- appliance_deps_file = local_bundler_d . join ( "manageiq_appliance_dependencies.rb" )
212
- File . write ( appliance_deps_file , appliance_deps )
213
-
214
206
FileUtils . cp ( root . join ( "Gemfile.lock.release" ) , root . join ( "Gemfile.lock" ) )
215
207
216
208
if update_gems . any?
@@ -235,8 +227,6 @@ namespace :release do
235
227
end
236
228
237
229
FileUtils . cp ( root . join ( "Gemfile.lock" ) , root . join ( "Gemfile.lock.release" ) )
238
- ensure
239
- FileUtils . rm_f ( appliance_deps_file )
240
230
end
241
231
end
242
232
end
0 commit comments