Module: Orchestration::TFTP::InstanceMethods

Defined in:
app/models/orchestration/tftp.rb

Instance Method Summary collapse

Instance Method Details

#tftpObject


19
20
21
# File 'app/models/orchestration/tftp.rb', line 19

def tftp
  subnet.tftp_proxy(:variant => operatingsystem.pxe_variant) if tftp?
end

#tftp?Boolean


15
16
17
# File 'app/models/orchestration/tftp.rb', line 15

def tftp?
  !!(subnet and subnet.tftp?) and (operatingsystem and operatingsystem.pxe_variant) and managed? and capabilities.include?(:build)
end