Class: StudioApi::Repository
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- StudioApi::Repository
- Extended by:
- StudioResource
- Defined in:
- lib/studio_api/repository.rb
Overview
Represents available repositories for appliance.
Allows finding and importing repositories. When using find :all then there is optional parameters for base_system and filter
Class Method Summary collapse
-
.import(url, name) ⇒ StudioApi::Repository
Import new repository to Studio .
Methods included from StudioResource
collection_path, element_path, extended, studio_connection, studio_connection=
Class Method Details
.import(url, name) ⇒ StudioApi::Repository
Import new repository to Studio
note: Repository will be available to everyone
23 24 25 26 27 |
# 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 |