2011-08-29 15:01:48 -04:00
|
|
|
= HP Cloud Extensions to Ruby Fog Library
|
|
|
|
|
2011-12-15 12:53:38 -05:00
|
|
|
HP provides a native Ruby library through an HP Cloud developed extension to the Ruby Fog provider. By using
|
|
|
|
the HP Cloud Ruby library, developers can write applications using Ruby that interacts with the
|
2011-08-29 15:01:48 -04:00
|
|
|
HP Cloud Services without having to deal with the underlying REST API or XML document formats.
|
|
|
|
|
|
|
|
== Background
|
|
|
|
|
2011-12-15 12:53:38 -05:00
|
|
|
This library is an extension of Fog[https://github.com/fog/fog], a Ruby open-source cloud
|
2011-08-29 15:01:48 -04:00
|
|
|
computing library.
|
|
|
|
|
|
|
|
Because the details of the HP Cloud Services are not formally announced, we are maintaining a
|
|
|
|
running branch of the Fog library that contains all HP-specific support. When our formal
|
|
|
|
product announcement comes and the services become publicly available, we intend to return our
|
|
|
|
contributions to the primary open-source library.
|
|
|
|
|
|
|
|
The HP Cloud Ruby library currently supports HP Cloud Object Storage and HP Cloud Compute, and
|
|
|
|
support for other services will be added as available.
|
|
|
|
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
1) Start by installing the software the HP Cloud Services Ruby Fog library depends on:
|
|
|
|
|
|
|
|
* {Ruby 1.9.2 or Ruby 1.8.7}[http://www.ruby-lang.org/en/]
|
|
|
|
* {RubyGems 1.3.7 or later}[http://docs.rubygems.org/read/chapter/3]
|
|
|
|
|
|
|
|
2) {Download the HP Cloud Services Ruby Fog gem}[/downloads/hpfog.tar] and unpack it to a local directory.
|
|
|
|
|
|
|
|
3) cd into the directory you downloaded the gem into during Step 2) and type:
|
|
|
|
|
|
|
|
gem install hpfog-<version>.gem
|
|
|
|
|
2012-02-02 11:49:28 -05:00
|
|
|
where <version> is the version number of the downloaded and unpacked file, for example 0.0.8
|
2011-08-29 15:01:48 -04:00
|
|
|
|
|
|
|
That's it! Try out the usage examples explained below to confirm your installation.
|
|
|
|
|
|
|
|
If you should ever need to remove the library:
|
|
|
|
|
|
|
|
gem uninstall hpfog
|
|
|
|
|
|
|
|
== Usage
|
|
|
|
|
|
|
|
The Ruby Fog library is well documented on the community web site, but for specific examples
|
|
|
|
using HP's extensions, see:
|
|
|
|
|
2011-12-15 12:53:38 -05:00
|
|
|
* {HP Cloud Fog library - Object Storage Examples}[http://build.hpcloud.com/bindings/fog/object-storage]
|
|
|
|
* {HP Cloud Fog library - Compute Examples}[http://build.hpcloud.com/bindings/fog/compute]
|
2011-08-29 15:01:48 -04:00
|
|
|
|
2012-02-03 13:16:07 -05:00
|
|
|
= Notice
|
|
|
|
|
|
|
|
The following notice applies to files included in the /lib/fog/hp directory and its sub-directories.
|
2012-02-02 11:49:28 -05:00
|
|
|
|
|
|
|
Copyright (c) 2011 Hewlett-Packard Development Company, L.P.
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
|
|
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
|
|
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
|
|
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all copies or
|
|
|
|
substantial portions of the Software.
|
2011-08-29 15:01:48 -04:00
|
|
|
|
2012-02-02 11:49:28 -05:00
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
|
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
|
|
|
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
|
|
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
DEALINGS IN THE SOFTWARE.
|
2011-08-29 15:01:48 -04:00
|
|
|
|
|
|
|
|