Ruby Wrapper for jiffybox.de API
Rjiffy::Configuration.configure do |conf|
conf.token = "somevalidapitoken"
conf.loglevel = Logger::INFO
end
Note Logger::INFO
or higher will disable request logging. Default is Logger::DEBUG
Rjiffy.backups
Rjiffy::Box.all
box = Rjiffy::Box.find(ID)
box.backups
box.create_recurring_backup({"dayid" => 1, "timeid" => 2})
Rjiffy::Box.create({:name => "Test", :planid => "1", :distribution => "centos_5_6_32bit"})
box.start
, box.shutdown
, box.pullplug
, box.freeze
, box.thaw(PLANID)
box.reload
box.delete
This triggers the delete process. On success the new status for the box is set to "DELETING"
Rjiffy::Plan.all
Rjiffy::Plan.find("CloudLevel 2")
or use an id
Rjiffy::Plan.find(1)
Rjiffy::Distribution.all
Rjiffy::Distribution.find("centos_5_4_64bit")
- Improve Error Handling
- Tweak Readme
- Implement all stuff we can do with the jiffybox API