Module: Orchestration::Puppetca

Included in:
Host::Managed
Defined in:
app/models/orchestration/puppetca.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/puppetca.rb', line 2

def self.included(base)
  base.send :include, InstanceMethods
  base.class_eval do
    attr_reader :puppetca
    after_validation :initialize_puppetca, :queue_puppetca
    before_destroy :initialize_puppetca, :queue_puppetca_destroy unless Rails.env == "test"
  end
end