2010-12-16 20:04:28 +00:00
|
|
|
require 'nokogiri'
|
|
|
|
|
2010-12-16 19:24:52 +00:00
|
|
|
require File.join(File.dirname(__FILE__), 'core')
|
2010-10-29 22:25:14 +00:00
|
|
|
require 'fog/core/parser'
|
|
|
|
|
2010-09-18 17:40:48 +00:00
|
|
|
module Fog
|
|
|
|
module Google
|
|
|
|
|
|
|
|
extend Fog::Provider
|
|
|
|
|
2011-01-07 23:34:20 +00:00
|
|
|
service(:storage, 'storage/google')
|
2010-09-18 17:40:48 +00:00
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
|
|
|
def self.etag
|
|
|
|
hex(32)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.hex(length)
|
|
|
|
max = ('f' * length).to_i(16)
|
|
|
|
rand(max).to_s(16)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|