Module: Orchestration

Included in:
Host::Managed, Nic::Managed
Defined in:
lib/orchestration/task.rb,
lib/orchestration/queue.rb,
app/models/orchestration.rb

Defined Under Namespace

Modules: Compute, DHCP, DNS, InstanceMethods, Puppetca, SSHProvision, TFTP Classes: Queue, Task

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
# File 'app/models/orchestration.rb', line 5

def self.included(base)
  base.send :include, InstanceMethods
  base.class_eval do
    attr_reader :old

    # save handles both creation and update of hosts
    before_save :on_save
    after_commit :post_commit
    after_destroy :on_destroy
  end
end