Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby Wrapper for jiffybox.de API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Readme.md
Octocat-spinner-32 rjiffy.gemspec
Readme.md

Description

Ruby Wrapper for jiffybox.de API

Configuration

Rjiffy::Configuration.configure do |conf|
  conf.token = "somevalidapitoken"
end

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
Something went wrong with that request. Please try again.