3 cattr_accessor :manifest
4 attr :list_groups, :profilers, :filers, :forms, :buckets, :module_names
5 # call me before load routes.rb
6 # routes.rb needs engine_resources manifest in system_resources
7 # ex. it's adding license_groups routes
8 def initialize local_json
10 @local_json = local_json || {}
14 # managers can't initialize before load application.rb
15 return unless defined? ::Pettanr
16 @list_groups = ListGroup.load(self, @local_json, 'list_groups')
17 @filers = Filer.load(self, @local_json, 'filers')
18 @profilers = Profiler.load(self, @local_json, 'profilers')
19 @forms = Form.load(self, @local_json, 'forms')
20 @buckets = Bucket.load(self, @local_json, 'buckets')
27 LocalManifest.manifest
31 LocalManifest.manifest = LocalManifest.new local_json