Browse Source

terraform get and gofmt

pull/16/head
Jeff Storey 9 years ago
parent
commit
bb77afac6e
  1. 8
      main.go

8
main.go

@ -56,6 +56,7 @@ func main() {
commands = append(commands, deleteCache()) commands = append(commands, deleteCache())
commands = append(commands, remoteConfigCommand(remote)) commands = append(commands, remoteConfigCommand(remote))
} }
commands = append(commands, getModules())
commands = append(commands, planCommand(vargs.Vars)) commands = append(commands, planCommand(vargs.Vars))
if !vargs.Plan { if !vargs.Plan {
commands = append(commands, applyCommand()) commands = append(commands, applyCommand())
@ -115,6 +116,13 @@ func remoteConfigCommand(config remote) *exec.Cmd {
) )
} }
func getModules() *exec.Cmd {
return exec.Command(
"terraform",
"get",
)
}
func planCommand(variables map[string]string) *exec.Cmd { func planCommand(variables map[string]string) *exec.Cmd {
args := []string{ args := []string{
"plan", "plan",

Loading…
Cancel
Save