2011-04-11 09:35:08 +01:00
|
|
|
require 'xmlrpc/client'
|
|
|
|
class ProductBuilder
|
|
|
|
|
|
|
|
SUCCESS = 0
|
|
|
|
ERROR = 1
|
|
|
|
|
|
|
|
|
|
|
|
def self.client
|
|
|
|
@@client ||= XMLRPC::Client.new3(:host => APP_CONFIG['product_builder_ip'], :port => APP_CONFIG['product_builder_port'], :path => APP_CONFIG['product_builder_path'])
|
|
|
|
end
|
|
|
|
|
2011-04-22 15:22:44 +01:00
|
|
|
def self.create_product product_id, path, kstemplate, menuxml, build, counter
|
|
|
|
self.client.call('create_product', product_id, path, kstemplate, menuxml, build, counter)
|
2011-04-11 09:35:08 +01:00
|
|
|
end
|
|
|
|
end
|