Bug #12

avatar

Einarc: eliminate global constants

Added by Mikhail Yakshin 1116 days ago. Updated 1115 days ago.

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

0%

Category:-
Target version:1.4

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 1115 days ago

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

Updated by Mikhail Yakshin 1115 days ago

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

Also available in: Atom PDF