Code Monkey home page Code Monkey logo

fog-google's Introduction

Fog::Google

Gem Version Build Status Dependency Status Coverage Status Code Climate Stories in Ready

Fog currently supports two Google Cloud services: Google Compute Engine and Google Cloud Storage. The main maintainer for the Google sections is @icco.

As of fog#68, Google no longer supports Ruby versions less than 2.0.0.

Storage

Google Cloud Storage originally was very similar to Amazon's S3. Because of this, Fog implements the XML GCS API. We eventually want to move to the new JSON API, once it has similar performance characteristics to the XML API. If this migration interests you, send us a pull request!

Compute

Google Compute Engine is a Virtual Machine hosting service. Currently it is built on version v1 of the GCE API.

Our implementation of the API currently supports

  • Server creation, deletion and bootstrapping
  • Persistent Disk creation and deletion
  • Image lookup
  • Network and Firewall configuration
  • Operations
  • Snapshots
  • Instance Metadata
  • Project Metadata

Features we are looking forward to implementing in the future:

  • Image creation
  • Load balancer configuration

If you are using Fog to interact with GCE, please keep Fog up to date and file issues for any anomalies you see or features you would like.

Installation

Add this line to your application's Gemfile:

gem 'fog-google'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fog-google

Setup

Credentials

Follow the instructions to generate a private key. You can then create a fog credentials file at ~/.fog, which will look something like this:

my_credential:
    google_project: my-project
    google_client_email: xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@developer.gserviceaccount.com
    google_json_key_location: /path/to/my-project-xxxxxxxxxxxx.json

SSH-ing into instances

If you want to be able to bootstrap SSH-able instances, (using servers.bootstrap,) be sure you have a key in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub.

Contributing

See CONTRIBUTING.md in this repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.