pulumi/pkg/encoding/init.go
joeduffy 35aa6b7559 Rename pulumi/lumi to pulumi/pulumi-fabric
We are renaming Lumi to Pulumi Fabric.  This change simply renames the
pulumi/lumi repo to pulumi/pulumi-fabric, without the CLI tools and other
changes that will follow soon afterwards.
2017-08-02 09:25:22 -07:00

25 lines
524 B
Go

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
package encoding
import (
"github.com/pulumi/pulumi-fabric/pkg/util/contract"
)
func init() {
// Ensure a marshaler is available for every possible Lumifile extension
Marshalers = make(map[string]Marshaler)
for _, ext := range Exts {
switch ext {
case ".json":
Marshalers[ext] = JSON
case ".yml":
fallthrough
case ".yaml":
Marshalers[ext] = YAML
default:
contract.Failf("No Marshaler available for LumifileExt %v", ext)
}
}
}