Class: PPStats::Modules::ModuleTypes
- Inherits:
-
Object
- Object
- PPStats::Modules::ModuleTypes
- Includes:
- Singleton
- Defined in:
- lib/pp-stats/modules.rb
Instance Attribute Summary collapse
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize ⇒ ModuleTypes
constructor
A new instance of ModuleTypes.
Constructor Details
#initialize ⇒ ModuleTypes
Returns a new instance of ModuleTypes.
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/pp-stats/modules.rb', line 98 def initialize @types = { :manifests => ModuleType.new(['manifests'], ['.pp']), :templates => ModuleType.new(['templates'], ['.erb']), :libraries => ModuleType.new(['lib'], ['.rb']), :unit_tests => ModuleType.new(['spec/classes', 'spec/defines', 'spec/functions', 'spec/host', 'spec/unit'], ['.rb']), :system_tests => ModuleType.new(['spec/system'], ['.rb']), #:file => ModuleType.new('files', '*') } end |
Instance Attribute Details
#types ⇒ Object (readonly)
Returns the value of attribute types.
96 97 98 |
# File 'lib/pp-stats/modules.rb', line 96 def types @types end |