Module: Orchestration::Compute

Included in:
Host::Managed
Defined in:
app/models/orchestration/compute.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


2
3
4
5
6
7
8
9
# File 'app/models/orchestration/compute.rb', line 2

def self.included(base)
  base.send :include, InstanceMethods
  base.class_eval do
    attr_accessor :compute_attributes, :vm, :provision_method
    after_validation :validate_compute_provisioning, :queue_compute
    before_destroy :queue_compute_destroy
  end
end