```ruby
# Copyright (c) 2009-2012 VMware, Inc.

module Bosh::Cli
  class DeploymentManifestCompiler
    attr_accessor :properties

    def initialize(raw_manifest)
      @raw_manifest = raw_manifest
      @properties = {}
    end

    def property(name)
      @properties[name] || raise(UndefinedProperty,
                                 "Cannot resolve deployment property `#{name}'")
    end

    def result
      ERB.new(@raw_manifest, 4).result(binding.taint)
    rescue SyntaxError => e
      raise MalformedManifest,
            "Deployment manifest contains a syntax error\n" + e.to_s
    end
  end

end
```

Remove $SAFE level for ERB parsing
user
```ruby
# Copyright (c) 2009-2012 VMware, Inc.

module Bosh::Cli
  class DeploymentManifestCompiler
    attr_accessor :properties

    def initialize(raw_manifest)
      @raw_manifest = raw_manifest
      @properties = {}
    end

    def property(name)
      @properties[name] || raise(UndefinedProperty,
                                 "Cannot resolve deployment property `#{name}'")
    end

    def result
      ERB.new(@raw_manifest).result(binding.taint)
    rescue SyntaxError => e
      raise MalformedManifest,
            "Deployment manifest contains a syntax error\n" + e.to_s
    end
  end

end
```
assistant