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.1.5 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.4 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.3 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.2 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.1 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.1.0 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.0.3 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.0.2 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.0.1 lib/terraspace/plugin/expander/friendly.rb
terraspace-2.0.0 lib/terraspace/plugin/expander/friendly.rb
terraspace-1.1.7 lib/terraspace/plugin/expander/friendly.rb
terraspace-1.1.6 lib/terraspace/plugin/expander/friendly.rb
terraspace-1.1.5 lib/terraspace/plugin/expander/friendly.rb