duritong / ruby-cobbler

A ruby interface for interacting with a Cobbler server.
GNU Lesser General Public License v2.1
7 stars 5 forks source link

Add copy support #4

Closed spkane closed 10 years ago

spkane commented 10 years ago

Add support for the copy API method. This enables things like this:

require 'cobbler' Cobbler::Base.hostname = 'cobbler.example.com' Cobbler::Base.username = 'me' Cobbler::Base.password = 'pass' Cobbler::Base.debug_enabled=true Cobbler::System.debug_enabled=true a=Cobbler::System.find_one('testme.example.com') a.copy('testme2.example.com')

duritong commented 10 years ago

Would you mind adding some spec tests?

spkane commented 10 years ago

I'll try and get some added soon.

spkane commented 10 years ago

I tried to create a working spec without much luck. I'm not familiar with spec tests and this code base enough to get this to work in a timely fashion. The cobbler copy code works fine however.

duritong commented 10 years ago

Thanks will add specs