Module: Orchestration::TFTP

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

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

def self.included(base)
  base.send :include, InstanceMethods
  base.class_eval do
    after_validation :validate_tftp, :queue_tftp
    before_destroy :queue_tftp_destroy

    # required for pxe template url helpers
    include Rails.application.routes.url_helpers
  end
end