command: add provisioning output

This commit is contained in:
Mitchell Hashimoto 2014-07-27 09:11:53 -07:00
parent a61d88eb3c
commit 68c0bf3ced
1 changed files with 7 additions and 0 deletions

View File

@ -149,6 +149,13 @@ func (h *UiHook) PreDiff(
return terraform.HookActionContinue, nil
}
func (h *UiHook) PreProvision(id, provId string) (terraform.HookAction, error) {
h.ui.Output(h.Colorize.Color(fmt.Sprintf(
"[reset][bold]%s: Provisioning with '%s'...[reset_bold]",
id, provId)))
return terraform.HookActionContinue, nil
}
func (h *UiHook) PreRefresh(
id string, s *terraform.ResourceState) (terraform.HookAction, error) {
h.once.Do(h.init)