Last active
January 4, 2016 23:06
-
-
Save icco/42d42ecaaad2154def85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
ruby '2.3.0' | |
gem 'fog' | |
gem 'fog-google', git: 'https://github.com/icco/fog-google', branch: 'new_storage_api' | |
gem 'google-api-client' | |
gem 'net-ssh' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: https://github.com/icco/fog-google | |
revision: f4ee19c31de16158f120f9b581999b5d591273ea | |
branch: new_storage_api | |
specs: | |
fog-google (0.1.1) | |
fog-core | |
fog-json | |
fog-xml | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
CFPropertyList (2.3.2) | |
activesupport (4.2.5) | |
i18n (~> 0.7) | |
json (~> 1.7, >= 1.7.7) | |
minitest (~> 5.1) | |
thread_safe (~> 0.3, >= 0.3.4) | |
tzinfo (~> 1.1) | |
addressable (2.4.0) | |
autoparse (0.3.3) | |
addressable (>= 2.3.1) | |
extlib (>= 0.9.15) | |
multi_json (>= 1.0.0) | |
builder (3.2.2) | |
excon (0.45.4) | |
extlib (0.9.16) | |
faraday (0.9.2) | |
multipart-post (>= 1.2, < 3) | |
fission (0.5.0) | |
CFPropertyList (~> 2.2) | |
fog (1.35.0) | |
fog-aliyun | |
fog-atmos | |
fog-aws (>= 0.6.0) | |
fog-brightbox (~> 0.4) | |
fog-core (~> 1.32) | |
fog-dynect (~> 0.0.2) | |
fog-ecloud (~> 0.1) | |
fog-google (>= 0.1.1) | |
fog-json | |
fog-local | |
fog-powerdns (>= 0.1.1) | |
fog-profitbricks | |
fog-radosgw (>= 0.0.2) | |
fog-riakcs | |
fog-sakuracloud (>= 0.0.4) | |
fog-serverlove | |
fog-softlayer | |
fog-storm_on_demand | |
fog-terremark | |
fog-vmfusion | |
fog-voxel | |
fog-xenserver | |
fog-xml (~> 0.1.1) | |
ipaddress (~> 0.5) | |
nokogiri | |
fog-aliyun (0.1.0) | |
fog-core (~> 1.27) | |
fog-json (~> 1.0) | |
ipaddress (~> 0.8) | |
xml-simple (~> 1.1) | |
fog-atmos (0.1.0) | |
fog-core | |
fog-xml | |
fog-aws (0.8.0) | |
fog-core (~> 1.27) | |
fog-json (~> 1.0) | |
fog-xml (~> 0.1) | |
ipaddress (~> 0.8) | |
fog-brightbox (0.10.1) | |
fog-core (~> 1.22) | |
fog-json | |
inflecto (~> 0.0.2) | |
fog-core (1.35.0) | |
builder | |
excon (~> 0.45) | |
formatador (~> 0.2) | |
fog-dynect (0.0.2) | |
fog-core | |
fog-json | |
fog-xml | |
fog-ecloud (0.3.0) | |
fog-core | |
fog-xml | |
fog-json (1.0.2) | |
fog-core (~> 1.0) | |
multi_json (~> 1.10) | |
fog-local (0.2.1) | |
fog-core (~> 1.27) | |
fog-powerdns (0.1.1) | |
fog-core (~> 1.27) | |
fog-json (~> 1.0) | |
fog-xml (~> 0.1) | |
fog-profitbricks (0.0.5) | |
fog-core | |
fog-xml | |
nokogiri | |
fog-radosgw (0.0.4) | |
fog-core (>= 1.21.0) | |
fog-json | |
fog-xml (>= 0.0.1) | |
fog-riakcs (0.1.0) | |
fog-core | |
fog-json | |
fog-xml | |
fog-sakuracloud (1.7.5) | |
fog-core | |
fog-json | |
fog-serverlove (0.1.2) | |
fog-core | |
fog-json | |
fog-softlayer (1.0.2) | |
fog-core | |
fog-json | |
fog-storm_on_demand (0.1.1) | |
fog-core | |
fog-json | |
fog-terremark (0.1.0) | |
fog-core | |
fog-xml | |
fog-vmfusion (0.1.0) | |
fission | |
fog-core | |
fog-voxel (0.1.0) | |
fog-core | |
fog-xml | |
fog-xenserver (0.2.2) | |
fog-core | |
fog-xml | |
fog-xml (0.1.2) | |
fog-core | |
nokogiri (~> 1.5, >= 1.5.11) | |
formatador (0.2.5) | |
google-api-client (0.8.6) | |
activesupport (>= 3.2) | |
addressable (~> 2.3) | |
autoparse (~> 0.3) | |
extlib (~> 0.9) | |
faraday (~> 0.9) | |
googleauth (~> 0.3) | |
launchy (~> 2.4) | |
multi_json (~> 1.10) | |
retriable (~> 1.4) | |
signet (~> 0.6) | |
googleauth (0.5.0) | |
faraday (~> 0.9) | |
jwt (~> 1.4) | |
logging (~> 2.0) | |
memoist (~> 0.12) | |
multi_json (~> 1.11) | |
signet (~> 0.7) | |
i18n (0.7.0) | |
inflecto (0.0.2) | |
ipaddress (0.8.0) | |
json (1.8.3) | |
jwt (1.5.2) | |
launchy (2.4.3) | |
addressable (~> 2.3) | |
little-plugger (1.1.4) | |
logging (2.0.0) | |
little-plugger (~> 1.1) | |
multi_json (~> 1.10) | |
memoist (0.14.0) | |
mini_portile2 (2.0.0) | |
minitest (5.8.3) | |
multi_json (1.11.2) | |
multipart-post (2.0.0) | |
net-ssh (3.0.2) | |
nokogiri (1.6.7.1) | |
mini_portile2 (~> 2.0.0.rc2) | |
retriable (1.4.1) | |
signet (0.7.2) | |
addressable (~> 2.3) | |
faraday (~> 0.9) | |
jwt (~> 1.5) | |
multi_json (~> 1.10) | |
thread_safe (0.3.5) | |
tzinfo (1.2.2) | |
thread_safe (~> 0.1) | |
xml-simple (1.1.5) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
fog | |
fog-google! | |
google-api-client | |
net-ssh | |
BUNDLED WITH | |
1.11.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All examples presume that you have a ~/.fog credentials file set up. | |
# More info on it can be found here: http://fog.io/about/getting_started.html | |
require "bundler" | |
Bundler.require(:default, :development) | |
def test | |
connection = Fog::Google::StorageJSON.new | |
puts "Put a bucket..." | |
puts "----------------" | |
connection.put_bucket("fog-smoke-test", options = { "predefinedAcl" => "publicReadWrite" }) | |
puts "Get the bucket..." | |
puts "-----------------" | |
connection.get_bucket("fog-smoke-test") | |
puts "Put a test file..." | |
puts "---------------" | |
connection.put_object("fog-smoke-test", "my file", "THISISATESTFILE") | |
puts "Delete the test file..." | |
puts "---------------" | |
connection.delete_object("fog-smoke-test", "my file") | |
puts "Delete the bucket..." | |
puts "------------------" | |
connection.delete_bucket("fog-smoke-test") | |
end | |
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment