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-1.0.4 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.3 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.2 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.1 lib/terraspace/plugin/infer_provider.rb
terraspace-1.0.0 lib/terraspace/plugin/infer_provider.rb
terraspace-0.7.2 lib/terraspace/plugin/infer_provider.rb
terraspace-0.7.1 lib/terraspace/plugin/infer_provider.rb
terraspace-0.7.0 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.23 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.22 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.21 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.20 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.19 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.18 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.17 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.16 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.15 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.13 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.12 lib/terraspace/plugin/infer_provider.rb
terraspace-0.6.11 lib/terraspace/plugin/infer_provider.rb