# File lib/genome-bootstrap/core.rb, line 27 def initialize(repo) @repo = repo @fqdn = @repo @genomed = "http://#{@fqdn}/genome" @machine_types_url = @genomed + "/machine_types.html" @cobblerd = XMLRPC::Client.new2("http://#{@fqdn}/cobbler_api_rw") # TODO: figure out a way to pass these values in @token = @cobblerd.call2("login", "cobbler", "password")[1] @cobbler_profiles = @cobblerd.call2("get_profiles", @token)[1].map {|p| p["name"]} end