Class: Miko::ModX

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