[NEW] Added java as a platform
[ohcount] / rules / platforms.rb
1 # platforms
2 include Ohcount::Gestalt
3
4 class POSIX < Platform
5         trigger_libs :gnu_lib
6         trigger_language :autoconf
7 end
8
9 class Win32 < Platform
10         trigger_libs :windows_constants, :count => 2
11 end
12
13 class Linux < Platform
14         trigger_platform POSIX
15 end
16
17 class Ruby < Platform
18         trigger_language :ruby, :min_percent => 15
19 end
20
21 class Rails < Platform
22         t_and(
23                                 trigger_libs(:rails_core),
24                                 trigger_platform(Ruby)
25                          )
26 end
27
28 class Java < Platform
29         trigger_language :java, :min_percent => 20
30 end
31
32 class CakePHP < Platform
33         t_and(
34                                 trigger_language(:php, :min_percent => 15),
35                                 trigger_libs(:cake_php_core)
36                          )
37 end
38
39 class Java < Platform
40         trigger_language :java, :min_percent => 15
41 end
42
43 class SpringFramework < Platform
44         t_and(
45                                 trigger_platform(Java),
46                                 trigger_libs(:spring_library)
47                          )
48 end