danryan / spice

A zesty Chef server API wrapper
http://documentup.com/danryan/spice
MIT License
103 stars 22 forks source link

Add Opscode platform support via url_path method #1

Closed imeyer closed 13 years ago

imeyer commented 13 years ago

Hi Dan,

Spice rules!

I needed support for the Opscode platform so I added a new config variable url_path, which will preface all requests. I also included a new header: X-Chef-Version, which according to the opscode dudes, is required when accessing the platform. Tests are included, but since I don't have my own chef server to test, I wasn't able to run the full suite.

Thanks!

danryan commented 13 years ago

if I gather correctly, the Opscode platform has two additional requirements beyond a self-hosted Chef server:

Does that sound right? I have been wanting to tidy up the mess that is the Connection class. Would give me a good opportunity to do so :)

imeyer commented 13 years ago

That's correct. Technically, it's "organization", and X-Chef-Version.

:D

danryan commented 13 years ago

Weird, I can't pull in your commit. I'm getting: fatal: Couldn't find remote ref d1e221a260c623683ba2f13782f3df4502d71b32

If I can't pull it, I'll make the changes manually and push 'em up.

danryan commented 13 years ago

All changed are added to the master. I just pushed v0.4.0 to rubygems.org. Thanks for the help!