Sha256: 8a3f5d4d527a7645e3d279757fd57433a090a0bc213112050412b4d42d5b50de

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

module Hashicorptools
  module Variables

    def variables(settings_overrides = {})
      settings_overrides.collect{|key,value| format_variable(key, value)}.join(' ')
    end

    protected

    def format_variable(key, value)
      "-var '#{key}=\"#{value}\"'"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hashicorptools-2.1.0 lib/hashicorptools/variables.rb
hashicorptools-2.0.0 lib/hashicorptools/variables.rb
hashicorptools-1.1.0 lib/hashicorptools/variables.rb
hashicorptools-1.0.0 lib/hashicorptools/variables.rb
hashicorptools-0.5.1 lib/hashicorptools/variables.rb
hashicorptools-0.5.0 lib/hashicorptools/variables.rb
hashicorptools-0.4.0 lib/hashicorptools/variables.rb
hashicorptools-0.3.0 lib/hashicorptools/variables.rb