Class: Bosh::Clouds::ExternalCpi
- Inherits:
-
Object
- Object
- Bosh::Clouds::ExternalCpi
- Defined in:
- lib/cloud/external_cpi.rb
Defined Under Namespace
Classes: InvalidResponse, NonExecutable, UnknownError
Constant Summary collapse
- KNOWN_RPC_ERRORS =
%w( Bosh::Clouds::CpiError Bosh::Clouds::NotSupported Bosh::Clouds::NotImplemented Bosh::Clouds::CloudError Bosh::Clouds::VMNotFound Bosh::Clouds::NoDiskSpace Bosh::Clouds::DiskNotAttached Bosh::Clouds::DiskNotFound Bosh::Clouds::VMCreationFailed ).freeze
- KNOWN_RPC_METHODS =
%w( current_vm_id create_stemcell delete_stemcell create_vm delete_vm has_vm? reboot_vm set_vm_metadata configure_networks create_disk has_disk? delete_disk attach_disk detach_disk snapshot_disk delete_snapshot get_disks ping ).freeze
- RESPONSE_SCHEMA =
Membrane::SchemaParser.parse do { 'result' => any, 'error' => enum(nil, { 'type' => String, 'message' => String, 'ok_to_retry' => bool } ), 'log' => String } end
Instance Method Summary collapse
-
#initialize(cpi_path, director_uuid) ⇒ ExternalCpi
constructor
A new instance of ExternalCpi.
Constructor Details
#initialize(cpi_path, director_uuid) ⇒ ExternalCpi
Returns a new instance of ExternalCpi.
63 64 65 66 67 |
# File 'lib/cloud/external_cpi.rb', line 63 def initialize(cpi_path, director_uuid) @cpi_path = cpi_path @director_uuid = director_uuid @logger = Config.logger end |