Class: OpsManager::Appliance::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager/appliance/base.rb

Direct Known Subclasses

AWS, Vsphere

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/ops_manager/appliance/base.rb', line 7

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/ops_manager/appliance/base.rb', line 5

def config
  @config
end

Instance Method Details

#deploy_vmObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/ops_manager/appliance/base.rb', line 10

def deploy_vm
  raise NotImplementedError.new("You must implement deploy_vm.")
end

#stop_current_vm(name) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/ops_manager/appliance/base.rb', line 13

def stop_current_vm(name)
  raise NotImplementedError.new("You must implement stop_current_vm.")
end