The Ruby cloud services library.
Перейти к файлу
Wesley Beary ea6655838a just send strings rather than casting to symbol 2009-09-14 21:37:36 -07:00
benchs benchmarks 2009-08-31 23:16:53 -07:00
lib just send strings rather than casting to symbol 2009-09-14 21:37:36 -07:00
spec make mocking more clearly a one way transform 2009-09-14 21:14:34 -07:00
.document Initial commit to fog. 2009-05-18 00:13:06 -07:00
.gitignore move config to saner place, only parse it once 2009-07-13 19:25:44 -07:00
README.rdoc consolidate readme/license 2009-09-14 21:36:20 -07:00
Rakefile update rakefile and add gemspec 2009-09-04 14:49:26 -07:00
VERSION Version bump to 0.0.9 2009-09-10 11:56:14 -07:00
fog.gemspec Version bump to 0.0.9 2009-09-10 11:56:14 -07:00

README.rdoc

= fog

fog helps you interact with cloud services. fog is a work in progress.

== Features

* Low level api calls
* Model level abstractions
* Mocks

== Supports

* AWS EC2 (missing security group mocking, just starting on models)
* AWS S3
* AWS SimpleDB (missing models)

== Synopsis

  require 'fog'

  # turn on mocking (if desired)
  Fog.mock!

  # initialize a connection
  s3 = Fog::AWS::S3.new(
    :aws_access_key_id => id,
    :aws_secret_access_key => key
  )

  # low level requests
  s3.put_bucket('bucketname')
  s3.put_object('bucketname', 'objectname', 'objectbody')

  s3.get_bucket('bucketname')
  s3.get_object('bucketname', 'objectname')

  s3.delete_object('bucketname', 'objectname')
  s3.delete_bucket('bucketname')

  # models
  bucket = s3.buckets.create(:name => 'bucketname')
  bucket.objects.create(:name => 'objectname', :body => 'objectbody')

  bucket = s3.buckets.get('bucketname')
  object = bucket.objects.get('objectname')

  object.destroy
  bucket.destroy

== Requirements

* ruby 1.8 or 1.9
* ruby-hmac
* mime-types
* nokogiri

== Install

  sudo gem install fog

=== Copyright

(The MIT License)

Copyright (c) 2009 {geemus (Wesley Beary)}[http://github.com/geemus]

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.

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.