Class: Miko::Concrete5

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

Returns a new instance of Concrete5.



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

def initialize( path )
  super( path )
  
  ## Load ver 
  @version    = File.read( path )[/.*APP_VERSION.*/][/([\d.]+)/]
  @acct_home   = path.gsub("concrete/config/version.php", "")
  @script      = "Concrete5"
end