Sha256: 4f1a55cc3f3563755c8d9cad668868a2166cf99dd5b7cfd72bfe27083a6cd3ee

Contents?: true

Size: 553 Bytes

Versions: 1500

Compression:

Stored size: 553 Bytes

Contents

$hash = { "file" => "/tmp/myhashfile1" }

file {
    $hash["file"]:
        ensure => file, content => "content";
}

$hash2 = { "a" => { key => "/tmp/myhashfile2" }}

file {
    $hash2["a"][key]:
        ensure => file, content => "content";
}

define test($a = { "b" => "c" }) {
    file {
        $a["b"]:
            ensure => file, content => "content"
    }
}

test {
    "test":
        a => { "b" => "/tmp/myhashfile3" }
}

$hash3 = { mykey => "/tmp/myhashfile4" }
$key = "mykey"

file {
    $hash3[$key]: ensure => file, content => "content"
}

Version data entries

1,500 entries across 768 versions & 3 rubygems

Version Path
puppet-8.3.0 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.3.0 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.3.0-x86-mingw32 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.3.0-x86-mingw32 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.3.0-x64-mingw32 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.3.0-x64-mingw32 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.3.0-universal-darwin spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.3.0-universal-darwin spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.4.0 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.4.0 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.4.0-x86-mingw32 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.4.0-x86-mingw32 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.4.0-x64-mingw32 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-8.4.0-x64-mingw32 spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.4.0-universal-darwin spec/fixtures/unit/parser/lexer/hash.pp
puppet-8.4.0-universal-darwin spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-7.28.0 spec/fixtures/unit/parser/lexer/hash.pp
puppet-7.28.0 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-7.28.0-x86-mingw32 spec/fixtures/unit/pops/parser/lexer/hash.pp
puppet-7.28.0-x86-mingw32 spec/fixtures/unit/parser/lexer/hash.pp