Revision 2cea651f
Added by Lucas Tolchinsky over 14 years ago
- ID 2cea651f7d5c7868385022c5c8fe732d3d8e1d3d
app/models/host_mailer.rb | ||
---|---|---|
facthosts = Host.with_fact(name,value).all(conditions)
|
||
raise "unable to find any hosts with the fact name=#{name} and value=#{value}" if facthosts.empty?
|
||
filter << "Fact #{name}=#{value}"
|
||
# if environment and facts are defined together, we use a merge of both
|
||
hosts = envhosts.empty? ? facthosts : envhosts & facthosts
|
||
# if environment and facts are defined together, we use a merge of both
|
||
hosts = envhosts.empty? ? facthosts : envhosts & facthosts
|
||
end
|
||
|
||
if hosts.empty?
|
Also available in: Unified diff
first host_mailer tests to complete