Module: IronHammer::Projects::ProjectTypes

Defined in:
lib/iron_hammer/projects/project_types.rb

Constant Summary collapse

GUIDS =
{
  TestProject => '{3AC096D0-A1C2-E12C-1390-A8335801FDAB}',
  AspNetMvcProject => '{603C0E0B-DB56-11DC-BE95-000D561079B0}',
  AspNetProject => '{349C5851-65DF-11DA-9384-00065B846F21}'
}
TYPES =
GUIDS.inject({}) { |buffer, tuple| buffer.merge(tuple.pop => tuple.first) }

Class Method Summary collapse

Class Method Details

.guid_for(type) ⇒ Object



21
22
23
# File 'lib/iron_hammer/projects/project_types.rb', line 21

def self.guid_for type
  GUIDS[type]
end

.type_of(guid) ⇒ Object



17
18
19
# File 'lib/iron_hammer/projects/project_types.rb', line 17

def self.type_of guid
  TYPES[guid.to_s.upcase]
end