Module: Dcmgr::Models::Instance::ValidationMethods

Defined in:
lib/dcmgr/models/instance.rb

Class Method Summary collapse

Class Method Details

.hostname_uniqueness(account_id, hostname) ⇒ Object



47
48
49
# File 'lib/dcmgr/models/instance.rb', line 47

def self.hostname_uniqueness(, hostname)
  HostnameLease.filter(:account_id=>, :hostname=>hostname).empty?
end