Skip to content

Commit

Permalink
Add image to command constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Jun 25, 2018
1 parent 7955b65 commit ddd461e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string) {
ExpectContinueTimeout: 1 * time.Second,
},
}

stager := forge.NewStager(engine)
stager.Logs = color.Output

Expand All @@ -102,6 +103,7 @@ func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string) {
forwarder := forge.NewForwarder(engine)
forwarder.Logs = color.Output

image := engine.NewImage()
remoteApp := &remote.App{
CLI: cliConnection,
UI: p.UI,
Expand All @@ -122,6 +124,7 @@ func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string) {
&cmd.Export{
UI: p.UI,
Exporter: exporter,
Image: image,
FS: sysFS,
Help: help,
Config: config,
Expand All @@ -145,6 +148,7 @@ func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string) {
Runner: runner,
Forwarder: forwarder,
RemoteApp: remoteApp,
Image: image,
FS: sysFS,
Help: help,
Config: config,
Expand All @@ -153,6 +157,7 @@ func (p *Plugin) Run(cliConnection cfplugin.CliConnection, args []string) {
UI: p.UI,
Stager: stager,
RemoteApp: remoteApp,
Image: image,
TarApp: app.Tar,
FS: sysFS,
Help: help,
Expand Down

0 comments on commit ddd461e

Please sign in to comment.