Add url for downloading file archive
This commit is contained in:
parent
f8c0a3a8df
commit
ae6919a240
|
@ -31,7 +31,7 @@ class ProductsController < ApplicationController
|
|||
def build
|
||||
can_perform? @product if @product
|
||||
flash[:notice] = t('flash.product.build_started')
|
||||
ProductBuilder.create_product @product.id, @product.platform.unixname, @product.ks, @product.menu, @product.build, @product.counter, []
|
||||
ProductBuilder.create_product @product.id, @product.platform.unixname, @product.ks, @product.menu, @product.build, @product.counter, [], "http://#{request.host_with_port}#{@product.tar.url}"
|
||||
redirect_to :action => :show
|
||||
end
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ class ProductBuilder
|
|||
@@client ||= XMLRPC::Client.new3(:host => APP_CONFIG['product_builder_ip'], :port => APP_CONFIG['product_builder_port'], :path => APP_CONFIG['product_builder_path'])
|
||||
end
|
||||
|
||||
def self.create_product product_id, path, kstemplate, menuxml, build, counter, packages
|
||||
self.client.call('create_product', product_id.to_s, path, kstemplate, menuxml, build, counter, packages)
|
||||
def self.create_product product_id, path, kstemplate, menuxml, build, counter, packages, tar_url
|
||||
self.client.call('create_product', product_id.to_s, path, kstemplate, menuxml, build, counter, packages, tar_url)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue