Class: Bosh::Director::InstanceUpdater::Preparer
- Defined in:
- lib/bosh/director/instance_updater/preparer.rb
Instance Method Summary collapse
-
#initialize(instance, agent_client) ⇒ Preparer
constructor
A new instance of Preparer.
- #prepare ⇒ Object
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
#prepare ⇒ Object
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. =~ /unknown message/ end |