command: add preapply to UI so we can see that

This commit is contained in:
Mitchell Hashimoto 2014-06-26 22:11:04 -07:00
parent 5a84a24d12
commit 8d4aeb96c0
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,16 @@ type UiHook struct {
ui cli.Ui
}
func (h *UiHook) PreApply(
id string,
s *terraform.ResourceState,
d *terraform.ResourceDiff) (terraform.HookAction, error) {
h.once.Do(h.init)
h.ui.Output(fmt.Sprintf("%s: Applying...", id))
return terraform.HookActionContinue, nil
}
func (h *UiHook) PreDiff(
id string, s *terraform.ResourceState) (terraform.HookAction, error) {
h.once.Do(h.init)