rosa-build/lib/product_builder.rb

16 lines
477 B
Ruby

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
def self.create_product name, platform_name, params, packages, post_install, path, repos
self.client.call('create_product', name, platform_name, params, packages, post_install, path, repos)
end
end