class StudioApi::Repository

Represents available repositories for appliance.

Allows finding and importing repositories. When using find :all then there is optional parameters for base_system and filter

@example Find repository with kde for SLE11

StudioApi::Repository.find :all, :params => { :base_system => "sle11", :filter => "kde" }

Public Class Methods

import(url, name) click to toggle source

Import new repository to Studio

note: Repository will be available to everyone @param (to_s) url to repository @param (to_s) name of created repository @return [StudioApi::Repository] imported repository

# File lib/studio_api/repository.rb, line 23
def self.import (url, name)
  response = post '',:url => url, :name => name
  attrs = Hash.from_xml response.body
  Repository.new attrs["repository"]
end