Sha256: 2fb05495b0fd888438151e0b61bea4fe5695f3e257f9bb6fedb37cc49cb8968b

Contents?: true

Size: 337 Bytes

Versions: 33

Compression:

Stored size: 337 Bytes

Contents

module Terraspace::Plugin::Expander
  module Friendly
    # used by
    #   Terraspace::Compiler::Strategy::Tfvar::Layer
    #   Terraspace::Plugin::Expander::Interface
    def friendly_name(name)
      return '' if name.nil?
      names = Terraspace.config.layering.names.stringify_keys
      names[name.to_s] || name
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
terraspace-2.2.17 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.16 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.15 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.14 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.13 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.12 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.11 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.10 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.9 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.8 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.7 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.6 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.5 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.4 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.3 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.2 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.1 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.2.0 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.7 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.6 lib/terraspace/plugin/expander/friendly.rb