Class: Miko::ModX
Instance Attribute Summary
Attributes inherited from Base
#acct_home, #path, #script, #version
Instance Method Summary collapse
-
#initialize(path) ⇒ ModX
constructor
A new instance of ModX.
Methods inherited from Base
Constructor Details
#initialize(path) ⇒ ModX
Returns a new instance of ModX.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/scripts/modx.rb', line 5 def initialize( path ) super( path ) ## Load ver versions = [] File.open(path, "r").each {|x| versions << x if x =~ /MODX Revolution/} @version = versions[0].split(" ")[2] @acct_home = path.gsub("core/docs/changelog.txt", "") @script = "ModX" end |