require "memoist" require "terraspace" # for interface require "terraspace_plugin_google/version" require "terraspace_plugin_google/autoloader" TerraspacePluginGoogle::Autoloader.setup module TerraspacePluginGoogle class Error < StandardError; end # Friendlier method for config/plugins/google.rb. Example: # # TerraspacePluginGoogle.configure do |config| # config.gcs.versioning = true # end # def configure(&block) Interfaces::Config.instance.configure(&block) end def config Interfaces::Config.instance.config end extend self end Terraspace::Plugin.register("google", backend: "gcs", config_class: TerraspacePluginGoogle::Interfaces::Config, layer_class: TerraspacePluginGoogle::Interfaces::Layer, root: File.dirname(__dir__), )