Move runtime elements to the runtime package

This commit is contained in:
Luke Kysow
2018-06-08 16:36:04 +01:00
parent b531705429
commit d6883e83e4
20 changed files with 120 additions and 277 deletions

View File

@@ -37,6 +37,7 @@ import (
"github.com/runatlantis/atlantis/server/events/locking/boltdb"
"github.com/runatlantis/atlantis/server/events/models"
"github.com/runatlantis/atlantis/server/events/run"
"github.com/runatlantis/atlantis/server/events/runtime"
"github.com/runatlantis/atlantis/server/events/terraform"
"github.com/runatlantis/atlantis/server/events/vcs"
"github.com/runatlantis/atlantis/server/events/webhooks"
@@ -200,8 +201,8 @@ func NewServer(userConfig UserConfig, config Config) (*Server, error) {
ConfigReader: configReader,
Terraform: terraformClient,
}
executionPlanner := &yaml.ExecutionPlanner{
ConfigReader: &yaml.Reader{},
executionPlanner := &runtime.ExecutionPlanner{
ParserValidator: &yaml.ParserValidator{},
DefaultTFVersion: terraformClient.Version(),
TerraformExecutor: terraformClient,
}