Sha256: beb7e36f94b722572b0db6ddbcef00ba01a406305719557834797840cdc353d7

Contents?: true

Size: 604 Bytes

Versions: 101

Compression:

Stored size: 604 Bytes

Contents

module Terraspace::Plugin
  module InferProvider
    # Examples:
    #    TerraspacePluginAws     => aws
    #    TerraspacePluginAzurerm => azurerm
    #    TerraspacePluginGoogle  => google
    #
    # If multiple clouds used in a single Terraspace project. The TS_PROVIDER_EXPANSION env var provides a way to
    # change it. Can possibly use config hooks to set different values based on the module being deployed:
    # https://terraspace.cloud/docs/config/hooks/
    def provider
      ENV['TS_PROVIDER'] || self.class.to_s.split('::').first.sub('TerraspacePlugin','').underscore
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
terraspace-0.5.3 lib/terraspace/plugin/infer_provider.rb
terraspace-0.5.2 lib/terraspace/plugin/infer_provider.rb
terraspace-0.5.1 lib/terraspace/plugin/infer_provider.rb
terraspace-0.5.0 lib/terraspace/plugin/infer_provider.rb
terraspace-0.4.4 lib/terraspace/plugin/infer_provider.rb
terraspace-0.4.3 lib/terraspace/plugin/infer_provider.rb
terraspace-0.4.2 lib/terraspace/plugin/infer_provider.rb
terraspace-0.4.1 lib/terraspace/plugin/infer_provider.rb
terraspace-0.4.0 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.6 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.5 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.4 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.3 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.2 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.1 lib/terraspace/plugin/infer_provider.rb
terraspace-0.3.0 lib/terraspace/plugin/infer_provider.rb
terraspace-0.2.4 lib/terraspace/plugin/infer_provider.rb
terraspace-0.2.3 lib/terraspace/plugin/infer_provider.rb
terraspace-0.2.2 lib/terraspace/plugin/infer_provider.rb
terraspace-0.2.1 lib/terraspace/plugin/infer_provider.rb