Example #1
0
func NewStop(jobSupervisor boshjobsuper.JobSupervisor, dualDCSupport *nimbus.DualDCSupport, platform boshplatform.Platform) (stop StopAction) {
	stop = StopAction{
		jobSupervisor: jobSupervisor,
		actionHook:    nimbus.NewActionHook(platform, dualDCSupport),
	}
	return
}
Example #2
0
func NewApply(
	applier boshappl.Applier,
	specService boshas.V1Service,
	settingsService boshsettings.Service,
	dualDCSupport *nimbus.DualDCSupport,
	platform boshplatform.Platform,
) (action ApplyAction) {
	action.applier = applier
	action.specService = specService
	action.settingsService = settingsService
	action.actionHook = nimbus.NewActionHook(platform, dualDCSupport)
	return
}