Sha256: 2b8374a6ee57458c1ee9090f64b068a91ef1f0df13e4d8185ab263cf42b93052

Contents?: true

Size: 780 Bytes

Versions: 4

Compression:

Stored size: 780 Bytes

Contents

require "memoist"
require "terraspace" # for interface

require "terraspace_plugin_aws/version"
require "terraspace_plugin_aws/autoloader"
TerraspacePluginAws::Autoloader.setup

module TerraspacePluginAws
  class Error < StandardError; end

  # Friendlier method for config/plugins/aws.rb. Example:
  #
  #     TerraspacePluginAws.configure do |config|
  #       config.s3.encrypt = true
  #     end
  #
  def configure(&block)
    Interfaces::Config.instance.configure(&block)
  end

  def config
    Interfaces::Config.instance.config
  end

  extend self
end

Terraspace::Plugin.register("aws",
  backend: "s3",
  config_class: TerraspacePluginAws::Interfaces::Config,
  layer_class: TerraspacePluginAws::Interfaces::Layer, # used for layering
  root: File.dirname(__dir__),
)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
terraspace_plugin_aws-0.2.2 lib/terraspace_plugin_aws.rb
terraspace_plugin_aws-0.2.1 lib/terraspace_plugin_aws.rb
terraspace_plugin_aws-0.2.0 lib/terraspace_plugin_aws.rb
terraspace_plugin_aws-0.1.0 lib/terraspace_plugin_aws.rb