Skip to content

Commit b229848

Browse files
authored
Merge pull request #3606 from olehermanse/trailer
Removed trailing whitespace in .cf files
2 parents d1f9fab + e1c6c53 commit b229848

2 files changed

Lines changed: 76 additions & 76 deletions

File tree

content/examples/tutorials/file_compare_test.cf

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bundle agent create_aout
133133

134134
# Removes any previous binary
135135
"rmaout" string => execresult("$(global_vars.rmexec) $(global_vars.aoutexec)","noshell");
136-
136+
137137
doesfileacexist::
138138
"compilestr" string => "$(global_vars.gccexec) $(global_vars.workdir)/a.c -o $(global_vars.aoutexec)";
139139
"gccaout" string => execresult("$(compilestr)","noshell");
@@ -143,7 +143,7 @@ bundle agent create_aout
143143
"gcc output: $(gccaout)";
144144
"Creating aout using $(compilestr)";
145145
!doesfileacexist::
146-
"Cannot compile a.out, $(global_vars.workdir)/a.c does not exist.";
146+
"Cannot compile a.out, $(global_vars.workdir)/a.c does not exist.";
147147
doesaoutexist::
148148
"The binary application aout has been compiled from the source in the create_aout_source_file bundle. It uses the stat library to compare two files, determine if the modified times are different, and whether the second file is newer than the first. The difference between this application and using CFEngine's built in support for getting file stats (e.g. filestat, isnewerthan), which provides file modification time accurate to a second. However, in order to better compare two files might sometimes require parts of a second as well. The stat library provides the extra support for retrieving the additional information required to get better accuracy (down to parts of a second), and is utilized by the binary application a.out that is compiled within the create_aout bundle.";
149149
"*********************************";
@@ -189,20 +189,20 @@ bundle agent do_files_exist_1
189189

190190
doesfile1exist::
191191

192-
"any" usebundle => delete_file("$(global_vars.file1)");
192+
"any" usebundle => delete_file("$(global_vars.file1)");
193193
doesfile2exist::
194-
"any" usebundle => delete_file("$(global_vars.file2)");
194+
"any" usebundle => delete_file("$(global_vars.file2)");
195195
reports:
196196

197197
!doesfile1exist::
198198
"$(global_vars.file1) does not exist.";
199199
doesfile1exist::
200-
"$(global_vars.file1) did exist. Call to delete it was made.";
201-
200+
"$(global_vars.file1) did exist. Call to delete it was made.";
201+
202202
!doesfile2exist::
203203
"$(global_vars.file2) does not exist.";
204204
doesfile2exist::
205-
"$(global_vars.file2) did exist. Call to delete it was made.";
205+
"$(global_vars.file2) did exist. Call to delete it was made.";
206206

207207
}
208208

@@ -245,7 +245,7 @@ bundle agent copy_a_file
245245
bundle agent do_files_exist_2
246246

247247
{
248-
248+
249249
methods:
250250

251251
"any" usebundle => does_file_exist($(global_vars.file1));
@@ -275,7 +275,7 @@ bundle agent does_file_exist(filename)
275275
bundle agent list_file_1
276276
{
277277

278-
methods:
278+
methods:
279279
"any" usebundle => file_content($(global_vars.file1));
280280
"any" usebundle => file_content($(global_vars.file2));
281281
reports:
@@ -314,7 +314,7 @@ bundle agent stat
314314
vars:
315315

316316
doesfile1exist::
317-
317+
318318
"file1" string => "$(global_vars.file1)";
319319
"file2" string => "$(global_vars.file2)";
320320

@@ -329,7 +329,7 @@ bundle agent stat
329329
"file2_split2" string => nth("file2_split1",1);
330330
"file2_split3" slist => string_split($(file2_split2),"\.",3);
331331
"file2_split4" string => nth("file2_split3",1);
332-
332+
333333
methods:
334334

335335
"any" usebundle => exec_aout();
@@ -390,11 +390,11 @@ body replace_with hello_world
390390

391391
bundle agent list_file_2
392392
{
393-
393+
394394
methods:
395395

396396
"any" usebundle => file_content($(global_vars.file1));
397-
"any" usebundle => file_content($(global_vars.file2));
397+
"any" usebundle => file_content($(global_vars.file2));
398398

399399
classes:
400400

@@ -422,7 +422,7 @@ bundle agent file_content(filename)
422422

423423
"file_content" string => readfile( "$(filename)" , "0" );
424424
"file_stat" string => filestat("$(filename)","mtime");
425-
425+
426426
reports:
427427
"Contents of $(filename) = $(file_content). Last Modified Time = $(file_stat).";
428428
#"The report on contents will only show new content and modifications. Even if the method is called more than once, if the evaluation is exactly the same as the previous call then there will be no report (possibly because the bundle is not evaluated a second time?).";

0 commit comments

Comments
 (0)