mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
27 lines
388 B
Ruby
27 lines
388 B
Ruby
require 'nokogiri'
|
|
|
|
require File.join(File.dirname(__FILE__), 'core')
|
|
require 'fog/core/parser'
|
|
|
|
module Fog
|
|
module Google
|
|
|
|
extend Fog::Provider
|
|
|
|
service_path 'fog/google'
|
|
service 'storage'
|
|
|
|
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
|