Class: Miko::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/miko/base.rb

Direct Known Subclasses

BBPress, Concrete5, Drupal, E107, Joomla, Magento, ModX, Moodle, MyBB, PHPBB, SMF, Wordpress

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/miko/base.rb', line 10

def initialize( path )
  @path = path 
end

Instance Attribute Details

#acct_homeObject

Returns the value of attribute acct_home.



8
9
10
# File 'lib/miko/base.rb', line 8

def acct_home
  @acct_home
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/miko/base.rb', line 8

def path
  @path
end

#scriptObject

Returns the value of attribute script.



8
9
10
# File 'lib/miko/base.rb', line 8

def script
  @script
end

#versionObject

Returns the value of attribute version.



8
9
10
# File 'lib/miko/base.rb', line 8

def version
  @version
end

Instance Method Details

#showVersionObject

Output formatted version string



15
16
17
18
19
20
21
# File 'lib/miko/base.rb', line 15

def showVersion
  unless defined?(@version).nil?
    unless @version.nil? or @version.empty?
      "%-20s %-30s %20s" % [ @script, @version, @acct_home]
    end
  end
end