Add url for downloading file archive

This commit is contained in:
Vladimir Sharshov 2011-11-03 00:25:25 +04:00
parent f8c0a3a8df
commit ae6919a240
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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