No commit activity in last 3 years
No release in over 3 years
Ruby Wrapper for the jiffybox.de API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.3.0
~> 2.6.0
~> 0.4.2

Runtime

~> 1.1.0
>= 0
~> 1.4.2
 Project Readme

Description

Ruby Wrapper for jiffybox.de API

Configuration

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

List all backups

Rjiffy.backups

Find all boxes

Rjiffy::Box.all

Find one box

box = Rjiffy::Box.find(ID)

List Backups for the box

box.backups

Create a recurring Backup for the box

box.create_recurring_backup({"dayid" => 1, "timeid" => 2})

Create a box

Rjiffy::Box.create({:name => "Test", :planid => "1", :distribution => "centos_5_6_32bit"})

Start, shutdown, pullplug, freeze and thaw a box

box.start, box.shutdown, box.pullplug, box.freeze, box.thaw(PLANID)

Reload a box

box.reload

Delete a box

box.delete

This triggers the delete process. On success the new status for the box is set to "DELETING"

List all plans

Rjiffy::Plan.all

Find a specific plan

Rjiffy::Plan.find("CloudLevel 2")

or use an id

Rjiffy::Plan.find(1)

List all distributions

Rjiffy::Distribution.all

Find a specific distribution

Rjiffy::Distribution.find("centos_5_4_64bit")

Todo

  • Improve Error Handling
  • Tweak Readme
  • Implement all stuff we can do with the jiffybox API