Bug #12

avatar

Einarc: eliminate global constants

Added by Mikhail Yakshin 3258 days ago. Updated 1510 days ago.

Status:Closed Start:01/15/2009
Priority:Normal Due date:
Assigned to:avatarMikhail Yakshin % Done:

0%

Category:-
Target version:2.0

Description

Einarc now uses several global constants in its modules, such as:

module RAID
        $EINARC_LIB = '/var/lib/einarc/tools'
        $EINARC_VAR = '/var/lib/einarc'
        $TARGET = 'x86_64'
        $RUBY_SHARE_DIR = '/usr/local/share/ruby/site_ruby/1.8/raid'
end

There's no real need in them. All these global constants can be moved truly in RAID module namespace and referenced using RAID::EINARC_LIB, RAID::EINARC_VAR, etc

History

Updated by Mikhail Yakshin 3258 days ago

avatar
  • Project changed from Inquisitor to Einarc
  • Category deleted (Einarc)
  • Target version deleted (3.1)

Updated by Mikhail Yakshin 3258 days ago

avatar
  • Assigned to set to Mikhail Yakshin
  • Target version set to 1.4

Updated by Mikhail Yakshin 1510 days ago

avatar
  • Status changed from New to Closed
  • Target version changed from 1.4 to 2.0

Global constants are eliminated, they're available in `Einarc` module now.

Also available in: Atom PDF