Class: Bosh::Director::InstanceUpdater::Preparer

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

Instance Method Summary collapse

Constructor Details

#initialize(instance, agent_client) ⇒ Preparer

Returns a new instance of Preparer.



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

def initialize(instance, agent_client)
  @instance = instance
  @agent_client = agent_client
end

Instance Method Details

#prepareObject



8
9
10
11
12
# File 'lib/bosh/director/instance_updater/preparer.rb', line 8

def prepare
  @agent_client.prepare(@instance.spec) unless detached?
rescue RpcRemoteException => e
  raise unless e.message =~ /unknown message/
end