~ubuntu-branches/ubuntu/lucid/libebox/lucid

« back to all changes in this revision

Viewing changes to src/EBox/Config.pm.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-02-27 13:19:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080227131928-8mefc35x4h4njvr0
Tags: 0.11.99-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        return $ref->{libdir} . "ebox/";
125
125
}
126
126
 
 
127
sub pkgdata 
 
128
{
 
129
        return $ref->{datadir} . "ebox/";
 
130
}
 
131
 
127
132
sub locale 
128
133
{
129
134
        return $ref->{datadir} . "locale/";
144
149
        return $ref->{localstatedir} . "lib/ebox/conf/ebox.passwd";
145
150
}
146
151
 
147
 
sub sessionid 
148
 
{
149
 
        return $ref->{localstatedir} . "lib/ebox/conf/ebox.sid";
150
 
}
 
152
# Method: sessionid
 
153
#
 
154
#      Get the path where Web session identifier is stored
 
155
#
 
156
# Returns:
 
157
#
 
158
#      String - the path to that file
 
159
 
 
160
sub sessionid
 
161
  {
 
162
    return $ref->{localstatedir} . 'lib/ebox/conf/ebox.sid';
 
163
  }
 
164
 
 
165
# Method: soapSession
 
166
#
 
167
#      Get the path where the SOAP session identifier is stored
 
168
#
 
169
# Returns:
 
170
#
 
171
#      String - the path to that file
 
172
#
 
173
sub soapSession
 
174
  {
 
175
    return $ref->{localstatedir} . 'lib/ebox/conf/ebox.soap-sid';
 
176
  }
151
177
 
152
178
sub log 
153
179
{
154
 
        return $ref->{localstatedir} . "lib/ebox/log/";
 
180
        return $ref->{localstatedir} . "log/ebox/";
155
181
}
156
182
 
157
183
sub logfile
158
184
{
159
 
        return $ref->{localstatedir} . "lib/ebox/log/ebox.log";
 
185
        return $ref->{localstatedir} . "log/ebox/ebox.log";
160
186
}
161
187
 
162
188
sub stubs 
194
220
        return $ref->{datadir} . "ebox/www/images/";
195
221
}
196
222
 
 
223
 
 
224
sub dynamicwww
 
225
{
 
226
        return $ref->{localstatedir} . 'lib/ebox/dynamicwww/';
 
227
}
 
228
 
 
229
sub dynamicwwwSubdirs
 
230
{
 
231
    return [ dynamicimages(), dynamicRSS() ];
 
232
}
 
233
 
 
234
sub dynamicimages
 
235
{
 
236
  return dynamicwww() . 'images/';
 
237
}
 
238
 
 
239
sub dynamicRSS
 
240
{
 
241
    return dynamicwww() . 'feed/';
 
242
}
 
243
 
197
244
sub package 
198
245
{
199
246
        return $ref->{package};
209
256
        return $ref->{lang};
210
257
}
211
258
 
 
259
# Method: perlPath
 
260
#
 
261
#      Get the PERL path where the perl modules lying on (Static
 
262
#      method).
 
263
#
 
264
# Returns:
 
265
#
 
266
#      String - the perl path
 
267
#
 
268
sub perlPath
 
269
  {
 
270
 
 
271
      return $ref->{perlpath};
 
272
 
 
273
  }
 
274
 
212
275
1;