Skip to content

Commit

Permalink
(chocolateyGH-14) Ensure source app called by commands
Browse files Browse the repository at this point in the history
For each command that has run of a command that is listed in
ISourceRunners, implement a check to ensure that the application that
normally runs for that tool is installed.
  • Loading branch information
ferventcoder committed Jan 22, 2015
1 parent aebfec1 commit e6a51e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void noop(ChocolateyConfiguration configuration)

public void run(ChocolateyConfiguration configuration)
{
_packageService.ensure_source_app_installed(configuration);
_packageService.install_run(configuration);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void noop(ChocolateyConfiguration configuration)

public void run(ChocolateyConfiguration configuration)
{
_packageService.ensure_source_app_installed(configuration);
_packageService.list_run(configuration, logResults: true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void noop(ChocolateyConfiguration configuration)

public void run(ChocolateyConfiguration configuration)
{
_packageService.ensure_source_app_installed(configuration);
_packageService.uninstall_run(configuration);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void noop(ChocolateyConfiguration configuration)

public void run(ChocolateyConfiguration configuration)
{
_packageService.ensure_source_app_installed(configuration);
_packageService.upgrade_run(configuration);
}
}
Expand Down

0 comments on commit e6a51e3

Please sign in to comment.