Method: Bosh::Director::Errand::JobManager#initialize

Defined in:
lib/bosh/director/errand/job_manager.rb

#initialize(deployment, job, cloud, event_log, logger) ⇒ JobManager

Returns a new instance of JobManager.



8
9
10
11
12
13
14
15
16
17
# File 'lib/bosh/director/errand/job_manager.rb', line 8

def initialize(deployment, job, cloud, event_log, logger)
  @deployment = deployment
  @job = job
  @event_log = event_log
  @logger = logger
  vm_deleter = Bosh::Director::VmDeleter.new(cloud, logger)
  @disk_manager = DiskManager.new(cloud, logger)
  @job_renderer = JobRenderer.create
  @vm_creator = Bosh::Director::VmCreator.new(cloud, logger, vm_deleter, @disk_manager, @job_renderer)
end