Skip to content

Commit ce61360

Browse files
authored
Merge pull request #16 from jrha/17.7.0
Add 17.7.0 documentation
2 parents 2cd6d9b + db34dad commit ce61360

File tree

105 files changed

+1129
-1211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1129
-1211
lines changed

docs/CAF/Application.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Applications can extend or overwrite the default methods.
6464
Returns the option value coming from the command line and/or
6565
configuration file. Scalar can be a string, or a reference to a hash
6666
or an array containing the option's value. option() is a wrapper
67-
on top of AppConfig->get($opt).
67+
on top of AppConfig->get($opt).
6868

6969
If the option doesn't exist, returns `undef`, except if the `default`
7070
argument has been specified: in this case this value is returned but

docs/CAF/FileWriter.md

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ This is a wrapper class for `IO::String` with customised close based on
130130
`""`, so it's now possible to do "$fh" and get the contents of the
131131
file so far.
132132

133+
(Returns empty string on an already closed file.)
134+
133135
- error, warn, info, verbose, debug, report, log, OK
134136

135137
Convenience methods to access the log/reporter instance that might

docs/CAF/Path.md

+49-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ undef on failure and store the error message in the `fail` attribute.
8787

8888
- \_untaint\_path
8989

90-
Untaint the `path` argument.
90+
Untaint the [path](../components/path.md) argument.
9191

9292
Returns undef on failure and sets the fail attribute with `msg`
9393

@@ -115,7 +115,7 @@ undef on failure and store the error message in the `fail` attribute.
115115

116116
- any\_exists
117117

118-
Test if `path` exists.
118+
Test if [path](../components/path.md) exists.
119119

120120
This is basically the perl builtin `-e || -l`,
121121
wrapped in a method to allow unittesting.
@@ -125,9 +125,9 @@ undef on failure and store the error message in the `fail` attribute.
125125

126126
- is\_symlink
127127

128-
Test if `path` is a symlink.
128+
Test if [path](../components/path.md) is a symlink.
129129

130-
Returns true as long as `path` is a symlink, including when the
130+
Returns true as long as [path](../components/path.md) is a symlink, including when the
131131
symlink target doesn't exist.
132132

133133
- cleanup
@@ -286,3 +286,48 @@ undef on failure and store the error message in the `fail` attribute.
286286
Additional options
287287

288288
- keeps\_state: boolean passed to `_get_noaction`.
289+
290+
- listdir
291+
292+
Return an arrayref of sorted directory entry names or undef on failure.
293+
(The `.` and `..` are removed).
294+
295+
Can be used to replace `glob()` as follows:
296+
297+
...
298+
foreach my $file (glob('/path/*.ext')) {
299+
...
300+
301+
replace by
302+
303+
...
304+
foreach my $file (@{$self->listdir('/path', filter => '\.ext$', adddir => 1)}) {
305+
...
306+
307+
Options
308+
309+
- test
310+
311+
An (anonymous) sub used for testing.
312+
The return value is interpreted as boolean value for filtering the
313+
directory entry names (true value means the name is kept).
314+
315+
Accepts 2 arguments: first argument (`$_[0]`) the directory entry name,
316+
2nd argument (`$_[1]`) the directory.
317+
318+
- filter
319+
320+
A pattern or compiled pattern to filter directory entry names.
321+
Matching names are kept.
322+
323+
- inverse
324+
325+
Apply inverse test (or filter) logic.
326+
327+
- adddir
328+
329+
Prefix the directory to the returned filenames (default false).
330+
331+
- file\_exists
332+
333+
Shortcut for test function that uses `CAF::Path::file_exists` as test function.

docs/CCM/Path.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ to manipulate absolute paths
2323

2424
Create new `EDG::WP4::CCM::Path` instance.
2525

26-
If `path` argument is not specified, root path (`/`) is used.
26+
If [path](../components/path.md) argument is not specified, root path (`/`) is used.
2727
Empty string is not allowed as an argument.
2828

29-
`path` is a string representation of the path as defined in the NVA-API
29+
[path](../components/path.md) is a string representation of the path as defined in the NVA-API
3030
Specification document.
3131

3232
- depth
@@ -121,7 +121,7 @@ to manipulate absolute paths
121121

122122
- \_safe\_unescape
123123

124-
Given `path` and `subpath`, test is `path` is in `@safe_unescape`
124+
Given [path](../components/path.md) and `subpath`, test is [path](../components/path.md) is in `@safe_unescape`
125125
and if it is, return unescaped subpath enclosed in `{}` (or not enclosed if
126126
`strip_unescape` is true).
127127

docs/Unittesting/Quattor.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ automatically:
191191

192192
- is\_symlink
193193

194-
Test if given `path` is a mocked symlink
194+
Test if given [path](../components/path.md) is a mocked symlink
195195

196196
- has\_hardlinks
197197

198-
Test if given `path` is a mocked hardlink
198+
Test if given [path](../components/path.md) is a mocked hardlink
199199

200200
Note that it is not a perfect replacement for the c<CAF::Path> `has_hardlinks` because
201201
the current implementation of mocked hardlinks does not allow to mimic multiple references
@@ -341,7 +341,7 @@ The following functions are exported by default:
341341

342342
- set\_immutable
343343

344-
Make `path` immutable. Pass a false `bool` to make the path mutable again
344+
Make [path](../components/path.md) immutable. Pass a false `bool` to make the path mutable again
345345
(not <undef>, default is to make the path immutable).
346346

347347
- is\_mutable
@@ -368,7 +368,7 @@ The following functions are exported by default:
368368
Test if given `$path` is a mocked directory
369369

370370
- is\_any
371-
Test if given `path` is known (as file or directory or anything else)
371+
Test if given [path](../components/path.md) is known (as file or directory or anything else)
372372
- make\_directory
373373

374374
Add a directory to the mocked directories.
@@ -380,7 +380,7 @@ Test if given `path` is known (as file or directory or anything else)
380380

381381
- remove\_any
382382

383-
Recursive removal of a `path` from the files\_contents / desired\_file\_contents
383+
Recursive removal of a [path](../components/path.md) from the files\_contents / desired\_file\_contents
384384

385385
- move
386386

docs/components-grid/condorconfig.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11

22
### NAME
33

4-
The _condorconfig_ component manages the configuration file of
5-
Condor.
4+
The _condorconfig_ component manages the configuration file of
5+
Condor.
66

77
### DESCRIPTION
88

99
The _condorconfig_ component manages the configuration file (default
1010
is `/opt/condor/etc/condor.conf`) for Condor. All of the condor
1111
parameters are available with exactly the same name in Quattor. See
1212
the condor documentation for the names and descriptions of the
13-
parameters.
13+
parameters.
1414

1515
### RESOURCES
1616

docs/components-grid/dpmlfc.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ncm-dpmlfc : NCM component to manage DPM and LFC configuration.
55

66
### DESCRIPTION
77

8-
This component allows to manage configuration of DPM and LFC services, with the exception of DPM xrootd protocol which is managed by
8+
This component allows to manage configuration of DPM and LFC services, with the exception of DPM xrootd protocol which is managed by
99
the [xrootd](../components-grid/xrootd.md) configuration module.
1010

11-
Configuration module **ncm-dpmlfc** requires that the DPM and/or LFC configuration describes all nodes participating to the service and their respective
11+
Configuration module **ncm-dpmlfc** requires that the DPM and/or LFC configuration describes all nodes participating to the service and their respective
1212
role (in term of daemon running on each node). Each daemon/host combination is called a daemon instance in this documentation.
1313

14-
Using the whole DPM and/or LFC description, **ncm-dpmlfc** takes care of action needed on every node to configure it as requested
15-
(you MUST use the same configuration description on every node participating to DPM and/or LFC). This includes restarting
14+
Using the whole DPM and/or LFC description, **ncm-dpmlfc** takes care of action needed on every node to configure it as requested
15+
(you MUST use the same configuration description on every node participating to DPM and/or LFC). This includes restarting
1616
a service after configuration changes if needed.
1717

1818
There are 2 sets of configuration options:
@@ -49,31 +49,31 @@ DPM and LFC accept the same global options but there is a separate set for each
4949

5050
- `/software/components/dpmlfc/options/PRODUCT/gridmapfile`
5151

52-
This option defines the local gridmap file used by products daemons.
52+
This option defines the local gridmap file used by products daemons.
5353

5454
Default: None (default configuration provided by RPM will be used)
5555

5656
- `/software/components/dpmlfc/options/PRODUCT/gridmapdir`
5757

58-
This option defines the gridmap dir used by products daemons.
58+
This option defines the gridmap dir used by products daemons.
5959

6060
Default: None (default configuration provided by RPM will be used)
6161

6262
- `/software/components/dpmlfc/options/PRODUCT/group`
6363

64-
This option defines the userid used by product daemons.
64+
This option defines the userid used by product daemons.
6565

6666
Default: None (default configuration provided by RPM will be used)
6767

6868
- `/software/components/dpmlfc/options/PRODUCT/user`
6969

70-
This option defines the userid used by product daemons.
70+
This option defines the userid used by product daemons.
7171

7272
Default: dpmmgr for DPM, lfcmgr for LFC
7373

7474
### DATABASE CONNECTION OPTIONS (DPM and LFC)
7575

76-
DPM and LFC accepts the same set of options to describe the database connection. In the following option names,
76+
DPM and LFC accepts the same set of options to describe the database connection. In the following option names,
7777
replace `PRODUCT` by either `dpm` or `lfc`. Both sets can coexist.
7878

7979
- `/software/components/dpmlfc/options/PRODUCT/db/configfile`
@@ -113,8 +113,8 @@ replace `PRODUCT` by either `dpm` or `lfc`. Both sets can coexist.
113113
- `/software/components/dpmlfc/options/PRODUCT/db/server` (string, optional)
114114

115115
This option defines the server running the database. This component checks that
116-
DPM and LFC database server run on different node (DPNS and LFC use the same database name).
117-
`localhost` is considered different as DPNS and LFC are not allowed to run on the same node.
116+
DPM and LFC database server run on different node (DPNS and LFC use the same database name).
117+
`localhost` is considered different as DPNS and LFC are not allowed to run on the same node.
118118

119119
Default : localhost.
120120

docs/components-grid/gip2.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ Default : none.
5858

5959
### LDIF entries : nlist (optional)
6060

61-
nlist of LDIF entries (key is the DN, value is a nlist of attribute/value pairs) to put in the resulting file
61+
nlist of LDIF entries (key is the DN, value is a nlist of attribute/value pairs) to put in the resulting file
6262
if staticInfoCmd is not specified or sets of key value/pairs (key is the set name and and value is a nlist of key/value pairs).
6363

6464
Key is interpreted as an escaped value.
6565

66-
If ommitted and confFile is defined, must be defined in `/software/components/gip2/ldifConfEntries`
66+
If ommitted and confFile is defined, must be defined in `/software/components/gip2/ldifConfEntries`
6767
key matching confFile.
6868

6969
Default : none.
@@ -100,7 +100,7 @@ Default : none.
100100

101101
#### `/software/components/gip2/staticInfoCmd` : string (optional)
102102

103-
Path of the command to execute to transform entries into a LDIF file if none is defined in the
103+
Path of the command to execute to transform entries into a LDIF file if none is defined in the
104104
`/software/components/gip2/ldif` entry. It is here for backward compatibility but it is recommended
105105
to define it as part of the ldif entries. If undefined in both locations, the configuration file
106106
is read directly without any processing.

docs/components-grid/glitestartup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ List of paths where to look for a script matching service name.
6868

6969
Default : `/opt/glite/etc/init.d`
7070

71-
#### `/software/components`/@COMP/services : nlist of string
71+
#### `/software/components`/@COMP/services : nlist of string
7272

7373
Nlist with one entry per service to start. Key is the service name,
7474
value is an optional nlist. This nlist can contain the following element:
7575

7676
- args startup script arguments
7777

78-
Default : none
78+
Default : none
7979

8080
### DEPENDENCIES
8181

docs/components-grid/glitestartup::schema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- `/software/glitestartup/glitestartup_component_service/args`
66
- Optional
77
- Type: string
8-
- Default value:
8+
- Default value:
99
- `/software/glitestartup/glitestartup_component_post_restart`
1010
- `/software/glitestartup/glitestartup_component_post_restart/cmd`
1111
- Optional

0 commit comments

Comments
 (0)