Class: Miko::Concrete5
Instance Attribute Summary
Attributes inherited from Base
#acct_home, #path, #script, #version
Instance Method Summary collapse
-
#initialize(path) ⇒ Concrete5
constructor
A new instance of Concrete5.
Methods inherited from Base
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 |