Project

General

Profile

Download (221 Bytes) Statistics
| Branch: | Tag: | Revision:
class HostObserver < ActiveRecord::Observer

def after_destroy(host)
return true if Rails.env == "test" or host.puppetca?
return true unless Setting[:manage_puppetca]

GW::Puppetca.clean host.name
end
end
(21-21/57)