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-2.2.17 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.16 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.15 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.14 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.13 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.12 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.11 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.10 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.9 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.8 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.7 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.6 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.5 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.4 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.3 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.2 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.1 lib/terraspace/plugin/infer_provider.rb
terraspace-2.2.0 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.7 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.6 lib/terraspace/plugin/infer_provider.rb