Sha256: 0f8f64a8eb9b7353a3a29c1a56e495857aba8305fb6bc04988eb1b4af2234c68

Contents?: true

Size: 792 Bytes

Versions: 5

Compression:

Stored size: 792 Bytes

Contents

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__),
)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
terraspace_plugin_google-0.2.2 lib/terraspace_plugin_google.rb
terraspace_plugin_google-0.2.1 lib/terraspace_plugin_google.rb
terraspace_plugin_google-0.2.0 lib/terraspace_plugin_google.rb
terraspace_plugin_google-0.1.1 lib/terraspace_plugin_google.rb
terraspace_plugin_google-0.1.0 lib/terraspace_plugin_google.rb