]>
Commit | Line | Data |
---|---|---|
bae9f6d2 JC |
1 | package terraform |
2 | ||
107c1cdb ND |
3 | import ( |
4 | "github.com/hashicorp/terraform/addrs" | |
5 | ) | |
6 | ||
bae9f6d2 JC |
7 | // ProvisionerUIOutput is an implementation of UIOutput that calls a hook |
8 | // for the output so that the hooks can handle it. | |
9 | type ProvisionerUIOutput struct { | |
107c1cdb ND |
10 | InstanceAddr addrs.AbsResourceInstance |
11 | ProvisionerType string | |
12 | Hooks []Hook | |
bae9f6d2 JC |
13 | } |
14 | ||
15 | func (o *ProvisionerUIOutput) Output(msg string) { | |
16 | for _, h := range o.Hooks { | |
107c1cdb | 17 | h.ProvisionOutput(o.InstanceAddr, o.ProvisionerType, msg) |
bae9f6d2 JC |
18 | } |
19 | } |