Project

General

Profile

« Previous | Next » 

Revision 91549be9

Added by Ohad Levy almost 14 years ago

  • ID 91549be97cb25332c28c63e3280e904b8547e1f4

fixes #264 - Overview of host's puppet classes should be sorted

View differences:

app/models/host.rb
end
def classes_from_storeconfigs
klasses = resources.find(:all, :conditions => {:restype => "Class"}, :select => :title)
klasses = resources.find(:all, :conditions => {:restype => "Class"}, :select => :title, :order => :title)
klasses.map!(&:title).delete(:main)
return klasses
end
app/views/hosts/storeconfig_klasses.html.erb
<% title "All Puppet Classes for #{host}" %>
<ul>
<% for klass in @host.classes_from_storeconfigs -%>
<li><%= h klass %></li>

Also available in: Unified diff