Class: PPStats::Modules::ModuleTypes

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/pp-stats/modules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeModuleTypes

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

#typesObject (readonly)

Returns the value of attribute types.



96
97
98
# File 'lib/pp-stats/modules.rb', line 96

def types
  @types
end