Class: SiSU_Info_Sys_Gen::InfoSystemGen

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/se_info_system.rb

Constant Summary collapse

IMAGES =
:images
SISU_ETC =
:sisu_etc
SISU_SHARE =
:sisu_share
SAMPLE_DATA_PATH =
:sample_data_path
IMAGE_STUB =
:image_stub
STYLESHEET_STUB =
:stylesheet_stub
IMAGE_LOCAL =
:image_local
WEBSERV_PATH =
:webserv_path
WEBSERV_MAN =
:webserv_man
WEBSERV_PHP =
:webserv_php
WEBSERV_CGI =
:webserv_cgi
WEBSERV_RSS =
:webserv_rss
WEBSERV_SQLITE =
:webserv_sqlite
OUTPUT_LOCAL =
:output_local
PROCESSING_DIR =
:processing_dir
PROCESSING_PATH =
:processing_path
PROCESSING_DIR_TMP_ROOT =
:processing_dir_tmp_root
PROCESSING_PATH_TMP_BASE =
:processing_path_tmp_base
PROCESSING_AO =
:processing_ao
PROCESSING_TUNE =
:processing_tune
PROCESSING_LATEX =
:processing_latex
PROCESSING_TEXINFO =
:processing_texinfo
PROCESSING_LOUT =
:processing_lout
PROCESSING_SQLITE =
:processing_sqlite
PROCESSING_POSTGRESQL =
:processing_postgresql
PROCESSING_ENCODING =
:processing_encoding
PROCESSING_GIT =
:processing_git
PAPERSIZE =
:papersize
MULTILINGUAL =

LANGUAGE=:language LANGUAGE_CODE=:language_code

:multilingual
BUNDLE =
:bundle
CONCORD_MAX =
:concord_max
DIGEST =
:digest
WEBSERV_HOST_CGI =
:webserv_host_cgi
WEBSERV_PORT_CGI =
:webserv_port_cgi
POSTGRESQL_USER =
:postgresql_user
POSTGRESQL_PORT =
:postgresql_port
SQLITE_USER =
:sqlite_user
SQLITE_PATH =
:sqlite_path
SQLITE_PORT =
:sqlite_port
DEFAULT_DIR =
{
  IMAGES =>                   '_sisu/image',
  SISU_ETC =>                 etc,
  SISU_SHARE =>               share,
  SAMPLE_DATA_PATH =>         data,
  IMAGE_STUB =>               '_sisu/image',
  STYLESHEET_STUB =>          '_sisu/css',
  IMAGE_LOCAL =>              @@pwd + '/_sisu/image',
  WEBSERV_PATH =>             out + '/www',
  #WEBSERV_DIR =>             www, # uncomment for urls...
  #WEBSERV_IMAGE =>            out + '/www/_sisu/image',
  WEBSERV_MAN =>              out + '/www/man', #alter
  WEBSERV_PHP =>              out + '/www/php',
  WEBSERV_CGI =>              '/usr/lib/cgi-bin',
  WEBSERV_RSS =>              out + '/www/feed',
  WEBSERV_SQLITE =>           out + '/www/sqlite',
  OUTPUT_LOCAL =>             @@home + '/sisu_www',
  PROCESSING_DIR =>           processing_dir,
  PROCESSING_PATH =>          processing_pth,
  PROCESSING_DIR_TMP_ROOT  => prcss_dir_tmp_root,
  PROCESSING_PATH_TMP_BASE => processing_pth,
  PROCESSING_AO =>            'ao',
  PROCESSING_TUNE =>          'tune',
  PROCESSING_LATEX =>         'tex',
  PROCESSING_TEXINFO =>       'texinfo',
  PROCESSING_SQLITE =>        'sqlite',
  PROCESSING_POSTGRESQL=>     'postgresql',
  PROCESSING_ENCODING =>      'encoding',
  PROCESSING_GIT =>           processing_git,
  #TEXINFO_STUB =>             'texinfo',
  PAPERSIZE =>                'A4', #A4, US_letter, book_b5, book_a5, US_legal
  #LANGUAGE =>                 'English',
  #LANGUAGE_CODE =>            'en', #change, unecessary duplication though currently used
  MULTILINGUAL =>             false,
  BUNDLE =>                   false,
  CONCORD_MAX =>              260000,
  DIGEST =>                   :sha256,
  WEBSERV_HOST_CGI =>         'http://localhost',
  WEBSERV_PORT_CGI =>         8081, #8111,8123,8081
  POSTGRESQL_USER =>          @@user, #'ralph', # change user !!!
  POSTGRESQL_PORT =>          port_pgsql,
  #POSGRESQL_LINKS_PATH =>    '',
  SQLITE_USER =>              @@user,
  SQLITE_PATH =>              @@user, #??
  SQLITE_PORT =>              '**',
}
@@default_dir =
DEFAULT_DIR
@@pwd =
@pwd=SiSU_Utils::Path.new.base_markup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInfoSystemGen

Returns a new instance of InfoSystemGen.



187
188
189
190
191
# File 'lib/sisu/se_info_system.rb', line 187

def initialize
  @user,   @home, @hostname, @pwd, @sisu_etc, @host, @arch, @rbver, @dir_arch, @dir_sitearch, @dir_bin, @locale, @default_dir=
    @@user,@@home,@@hostname,@@pwd,@@sisu_etc,@@host,@@arch,@@rbver,@@dir_arch,@@dir_sitearch,@@dir_bin,@@locale,@@default_dir
  #note rbver is duplicated in InfoVersion
end

Instance Attribute Details

#ad_pathObject

Returns the value of attribute ad_path.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def ad_path
  @ad_path
end

#archObject

Returns the value of attribute arch.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def arch
  @arch
end

#default_dirObject

Returns the value of attribute default_dir.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def default_dir
  @default_dir
end

#dir_archObject

Returns the value of attribute dir_arch.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def dir_arch
  @dir_arch
end

#dir_binObject

Returns the value of attribute dir_bin.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def dir_bin
  @dir_bin
end

#dir_sitearchObject

Returns the value of attribute dir_sitearch.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def dir_sitearch
  @dir_sitearch
end

#homeObject

Returns the value of attribute home.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def home
  @home
end

#hostObject

Returns the value of attribute host.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def host
  @host
end

#hostnameObject

Returns the value of attribute hostname.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def hostname
  @hostname
end

#localeObject

Returns the value of attribute locale.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def locale
  @locale
end

#pwdObject

Returns the value of attribute pwd.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def pwd
  @pwd
end

#rbverObject

Returns the value of attribute rbver.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def rbver
  @rbver
end

#rc_pathObject

Returns the value of attribute rc_path.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def rc_path
  @rc_path
end

#userObject

Returns the value of attribute user.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def user
  @user
end

#webserv_host_cgiObject

Returns the value of attribute webserv_host_cgi.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def webserv_host_cgi
  @webserv_host_cgi
end

#webserv_pathObject

Returns the value of attribute webserv_path.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def webserv_path
  @webserv_path
end

#webserv_port_cgiObject

Returns the value of attribute webserv_port_cgi.



186
187
188
# File 'lib/sisu/se_info_system.rb', line 186

def webserv_port_cgi
  @webserv_port_cgi
end