Project

General

Profile

Download (547 Bytes) Statistics
| Branch: | Tag: | Revision:
c6eee281 Ohad Levy
module PuppetclassesHelper
bb9a1ad1 Paul Kelly
include PuppetclassesAndEnvironmentsHelper
9afa092e Ohad Levy
include LookupKeysHelper
a67b0923 Paul Kelly
def rdoc_classes_path environment, name
19529e4b Paul Kelly
klass = name.gsub('::', '/')
1b3cbe60 Amos Benari
"puppet/rdoc/#{environment}/classes/#{klass}.html"
a67b0923 Paul Kelly
end
dc11280f Ohad Levy
def host_counter klass
# workaround for sqlite bug
# https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4544-rails3-activerecord-sqlite3-lost-column-type-when-using-views#ticket-4544-2
d9a2ebac Ohad Levy
@host_counter[klass.id.to_s] || @host_counter[klass.id.to_i] || 0
dc11280f Ohad Levy
rescue
"N/A"
end
c6eee281 Ohad Levy
end