Skip to content

Commit 7edf467

Browse files
authored
Merge pull request #1794 from nickanderson/CFE-3378/master
CFE-3378/master: Replaced @ignore with useful doc strings
2 parents 2812b5f + 3987b9d commit 7edf467

6 files changed

Lines changed: 13 additions & 20 deletions

File tree

lib/bundles.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Bundles
22

33
bundle common bundles_common
4-
# @ignore
4+
# @brief Enumerate policy files used by this policy file for inclusion to inputs
55
{
66
vars:
77
"inputs" slist => { "$(this.promise_dirname)/paths.cf",
@@ -10,7 +10,7 @@ bundle common bundles_common
1010
}
1111

1212
body file control
13-
# @ignore
13+
# @brief Include policy files used by this policy file as part of inputs
1414
{
1515
inputs => { @(bundles_common.inputs) };
1616
}

lib/cfe_internal_hub.cf

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
bundle common cfe_internal_hub_common
2-
# @ignore
2+
# @brief Enumerate policy files used by this policy file for inclusion to inputs
33
{
44
vars:
55
"inputs" slist => { "$(this.promise_dirname)/common.cf",
66
"$(this.promise_dirname)/commands.cf"};
77
}
88

99
body file control
10-
# @ignore
10+
# @brief Include policy files used by this policy file as part of inputs
1111
{
1212
inputs => { @(cfe_internal_hub_common.inputs) };
1313
}
1414

1515
bundle agent cfe_internal_hub_maintain
16-
# @ignore
1716
# @brief Executes reporting database maintenance process
1817
# By default database clean up interval is 24 hours.
1918
# Length of log history in database is controlled
@@ -112,7 +111,6 @@ bundle agent cfe_internal_hub_maintain
112111
}
113112

114113
bundle agent cfe_internal_database_cleanup_reports (settings)
115-
# @ignore
116114
# @brief clean up the reporting tables
117115
{
118116
vars:
@@ -140,7 +138,6 @@ AND t.$(settings[$(index)][time_key]) <= (z.latest - '$(settings[$(index)][hi
140138
}
141139

142140
bundle agent cfe_internal_database_cleanup_consumer_status (row_count)
143-
# @ignore
144141
# @brief keep up to row_count entries in the database
145142
# @note ENT-2797 After cf-consumer removal, this will still be necessary, functionality
146143
# of cf-consumer to be replaced with cf-hub-worker per Ole.
@@ -206,8 +203,8 @@ bundle agent cfe_internal_database_cleanup_diagnostics (settings)
206203
}
207204

208205
bundle agent cfe_internal_database_cleanup_promise_log (history_length_days)
209-
# @ignore
210-
# @brief clean up promise log
206+
# @brief clean up promise log files older than `history_length_days`
207+
# @param history_length_days Number of days after which promise logs should be deleted
211208
{
212209
vars:
213210
"cleanup_query_repaired"
@@ -225,7 +222,6 @@ bundle agent cfe_internal_database_cleanup_promise_log (history_length_days)
225222
}
226223

227224
bundle agent cfe_internal_database_partitioning()
228-
# @ignore
229225
# @brief create any nesesary table partitions for database
230226
{
231227
vars:
@@ -241,7 +237,6 @@ bundle agent cfe_internal_database_partitioning()
241237
}
242238

243239
bundle agent cfe_internal_postgresql_maintenance
244-
#@ignore
245240
#@brief Vacuum Full PostgreSQL for maintenance
246241
{
247242
vars:
@@ -293,7 +288,6 @@ bundle agent cfe_internal_postgresql_maintenance
293288
}
294289

295290
bundle agent cfe_internal_postgresql_vacuum
296-
#@ignore
297291
#@brief Vacuum (with analyze) over cfdb database.
298292
{
299293
vars:

lib/feature.cf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bundle agent feature_test
7979
}
8080

8181
body classes feature_cancel(x)
82-
# @ignore
82+
# @brief Undefine class `x` when promise is kept or repaired
8383
# Used internally by bundle `feature`
8484
{
8585
cancel_kept => { "$(x)" };

lib/files.cf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Files bodies
22

33
bundle common files_common
4-
# @ignore
4+
# @brief Enumerate policy files used by this policy file for inclusion to inputs
55
{
66
vars:
77
"inputs" slist => { "$(this.promise_dirname)/common.cf" };
88
}
99

1010
body file control
11-
# @ignore
11+
# @brief Include policy files used by this policy file as part of inputs
1212
{
1313
inputs => { @(files_common.inputs) };
1414
}
@@ -827,7 +827,6 @@ bundle edit_line set_config_values_matching(v,pat)
827827
##
828828

829829
bundle edit_line maintain_key_values(v,sep)
830-
# @ignore
831830
# @brief Sets the RHS of configuration items with an giving separator
832831
#
833832
# Contributed by David Lee

lib/services.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Services bodies
22

33
bundle common services_common
4-
# @ignore
4+
# @brief Enumerate policy files used by this policy file for inclusion to inputs
55
{
66
vars:
77
"inputs" slist => { "$(this.promise_dirname)/common.cf",
88
"$(this.promise_dirname)/paths.cf" };
99
}
1010

1111
body file control
12-
# @ignore
12+
# @brief Include policy files used by this policy file as part of inputs
1313
{
1414
inputs => { @(services_common.inputs) };
1515
}

lib/vcs.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# VCS Bundles
22

33
bundle common vcs_common
4-
# @ignore
4+
# @brief Enumerate policy files used by this policy file for inclusion to inputs
55
{
66
vars:
77
"inputs" slist => { "$(this.promise_dirname)/common.cf",
@@ -10,7 +10,7 @@ bundle common vcs_common
1010
}
1111

1212
body file control
13-
# @ignore
13+
# @brief Include policy files used by this policy file as part of inputs
1414
{
1515
inputs => { @(vcs_common.inputs) };
1616
}

0 commit comments

Comments
 (0)