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(blobstore) ⇒ JobUpdaterFactory

Returns a new instance of JobUpdaterFactory.



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

def initialize(blobstore)
  @blobstore = blobstore
end

Instance Method Details

#new_job_updater(deployment_plan, job) ⇒ Object



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

def new_job_updater(deployment_plan, job)
  job_renderer = JobRenderer.new(job, @blobstore)
  JobUpdater.new(deployment_plan, job, job_renderer)
end