Class: Miko::E107

Inherits:
Base
  • Object
show all
Defined in:
lib/scripts/e107.rb

Instance Attribute Summary

Attributes inherited from Base

#acct_home, #path, #script, #version

Instance Method Summary collapse

Methods inherited from Base

#showVersion

Constructor Details

#initialize(path) ⇒ E107

Returns a new instance of E107.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/scripts/e107.rb', line 5

def initialize( path )
  super( path )
  
  ## Load ver 
  ver         = File.read( path )[/.*e107_version.*/]
  unless ver.nil?
    @version      = ver.split("=")[1][/([\d.]+)/]
    @acct_home    = path.gsub("e107_admin/ver.php", "")
    @script       = "e107"
  end
end