Method: Miko::Applications#initialize

Defined in:
lib/miko/applications.rb

#initialize(option) ⇒ Applications



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/miko/applications.rb', line 24

def initialize(option)
  @option = option
  ## Add to applist
  ## name => /regxp
  @applist= { 'wordpress' =>  /.*\/wp-includes\/version.php$/,
              'joomla15'  =>  /.*\/libraries\/joomla\/version.php$/,
              'joomla25'  =>  /.*\/libraries\/cms\/version\/version.php$/,
              'drupal'    =>  /.*\/CHANGELOG.txt$/,
              'smf'       =>  /.*\/index.php$/,
              'magento'   =>  /.*\/app\/Mage.php$/,
              'phpbb'     =>  /.*\/styles\/prosilver\/template\/template.cfg$/,
              'mybb'      =>  /.*\/inc\/class_core.php$/,
              'moodle'    =>  /.*\/version.php$/,
              'concrete5' =>  /.*\/concrete\/config\/version.php$/,
              'e107'      =>  /.*\/e107_admin\/ver.php$/,
              'modx'      =>  /.*\/core\/docs\/changelog.txt$/,
              'bbpress'   =>  /.*\/bbpress.php$/
              }
end