Sha256: 0b3ff49fc509a3dedcb0b2701ce670cc8661dafdb6d5f715e57ac97332ffeda9
Contents?: true
Size: 563 Bytes
Versions: 36
Compression:
Stored size: 563 Bytes
Contents
module Terraspace::CLI::New::Helpers module PluginGem private def plugin_gem_name if @options[:plugin_gem] @options[:plugin_gem] else plugin = @options[:plugin] || autodetect_provider "terraspace_plugin_#{plugin}" end end def autodetect_provider providers = Terraspace::Plugin.meta.keys if providers.size == 1 providers.first else precedence = %w[aws azurerm google] precedence.find do |p| providers.include?(p) end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems