Class: Miko::PHPBB

Inherits:
Base
  • Object
show all
Defined in:
lib/scripts/phpbb.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) ⇒ PHPBB

Returns a new instance of PHPBB.



5
6
7
8
9
10
11
12
# File 'lib/scripts/phpbb.rb', line 5

def initialize( path )
  super( path )
  
  ## Load ver 
  @version    = File.read( path )[/.*version.*=.*/][/([\d.]+)/]
  @acct_home   = path.gsub("styles/prosilver/template/template.cfg", "")
  @script      = "phpBB"
end