Class: Bosh::Director::JobUpdaterFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/job_updater_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(cloud, logger) ⇒ JobUpdaterFactory

Returns a new instance of JobUpdaterFactory.



3
4
5
6
# File 'lib/bosh/director/job_updater_factory.rb', line 3

def initialize(cloud, logger)
  @cloud = cloud
  @logger = logger
end

Instance Method Details

#new_job_updater(deployment_plan, job) ⇒ Object



8
9
10
11
# File 'lib/bosh/director/job_updater_factory.rb', line 8

def new_job_updater(deployment_plan, job)
  links_resolver = DeploymentPlan::LinksResolver.new(deployment_plan, @logger)
  JobUpdater.new(deployment_plan, job, links_resolver, DiskManager.new(@cloud, @logger))
end