github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/terraform/eval_resource.go (about)

     1  package terraform
     2  
     3  // EvalInstanceInfo is an EvalNode implementation that fills in the
     4  // InstanceInfo as much as it can.
     5  type EvalInstanceInfo struct {
     6  	Info *InstanceInfo
     7  }
     8  
     9  // TODO: test
    10  func (n *EvalInstanceInfo) Eval(ctx EvalContext) (interface{}, error) {
    11  	n.Info.ModulePath = ctx.Path()
    12  	return nil, nil
    13  }