Module: Merb::ChefServerSlice::GlobalHelpers

Defined in:
app/helpers/global_helpers.rb

Instance Method Summary collapse

Instance Method Details

#node_escape(node) ⇒ Object



33
34
35
# File 'app/helpers/global_helpers.rb', line 33

def node_escape(node)
  node.gsub(/\./, '_')
end

#resource_collection(collection) ⇒ Object

helpers defined here available to all views.



24
25
26
27
28
29
30
31
# File 'app/helpers/global_helpers.rb', line 24

def resource_collection(collection)
  html = "<ul>"
  collection.each do |resource|
    html << "<li><b>#{resource.class}</b></li>"
  end
  html << "</ul>"
  html
end