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.1.5 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.4 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.3 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.2 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.1 lib/terraspace/plugin/infer_provider.rb
terraspace-2.1.0 lib/terraspace/plugin/infer_provider.rb
terraspace-2.0.3 lib/terraspace/plugin/infer_provider.rb
terraspace-2.0.2 lib/terraspace/plugin/infer_provider.rb
terraspace-2.0.1 lib/terraspace/plugin/infer_provider.rb
terraspace-2.0.0 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.7 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.6 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.5 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.4 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.3 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.2 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.1 lib/terraspace/plugin/infer_provider.rb
terraspace-1.1.0 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.6 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.5 lib/terraspace/plugin/infer_provider.rb