puppet-strings 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -2
- data/lib/puppet-strings.rb +2 -2
- data/lib/puppet-strings/markdown.rb +1 -1
- data/lib/puppet-strings/markdown/base.rb +6 -0
- data/lib/puppet-strings/markdown/data_type.rb +16 -0
- data/lib/puppet-strings/markdown/resource_type.rb +19 -2
- data/lib/puppet-strings/markdown/templates/classes_and_defines.erb +4 -4
- data/lib/puppet-strings/markdown/templates/data_type.erb +11 -4
- data/lib/puppet-strings/markdown/templates/data_type_function.erb +67 -0
- data/lib/puppet-strings/markdown/templates/function.erb +2 -1
- data/lib/puppet-strings/markdown/templates/puppet_task.erb +1 -1
- data/lib/puppet-strings/markdown/templates/resource_type.erb +12 -12
- data/lib/puppet-strings/markdown/templates/table_of_contents.erb +6 -6
- data/lib/puppet-strings/version.rb +1 -1
- data/lib/puppet-strings/yard/code_objects/data_type.rb +26 -6
- data/lib/puppet-strings/yard/code_objects/type.rb +46 -5
- data/lib/puppet-strings/yard/handlers/ruby/data_type_handler.rb +190 -43
- data/lib/puppet-strings/yard/handlers/ruby/type_base.rb +6 -0
- data/lib/puppet-strings/yard/handlers/ruby/type_extras_handler.rb +1 -1
- data/lib/puppet-strings/yard/handlers/ruby/type_handler.rb +6 -0
- data/lib/puppet-strings/yard/templates/default/puppet_data_type/html/method_details_list.erb +6 -0
- data/lib/puppet-strings/yard/templates/default/puppet_data_type/html/setup.rb +9 -1
- data/lib/puppet-strings/yard/templates/default/puppet_type/html/setup.rb +3 -1
- metadata +4 -46
- data/CODEOWNERS +0 -1
- data/Gemfile +0 -53
- data/HISTORY.md +0 -218
- data/JSON.md +0 -832
- data/Rakefile +0 -160
- data/codecov.yml +0 -3
- data/misc/ANNOUNCEMENT_TEMPLATE.md +0 -40
- data/spec/acceptance/emit_json_options_spec.rb +0 -69
- data/spec/acceptance/generate_markdown_spec.rb +0 -47
- data/spec/acceptance/running_strings_generate_spec.rb +0 -88
- data/spec/fixtures/acceptance/modules/test/functions/add.pp +0 -9
- data/spec/fixtures/acceptance/modules/test/lib/puppet/functions/4x_function.rb +0 -5
- data/spec/fixtures/acceptance/modules/test/lib/puppet/parser/functions/function3x.rb +0 -2
- data/spec/fixtures/acceptance/modules/test/lib/puppet/provider/server/linux.rb +0 -9
- data/spec/fixtures/acceptance/modules/test/lib/puppet/type/database.rb +0 -15
- data/spec/fixtures/acceptance/modules/test/manifests/init.pp +0 -31
- data/spec/fixtures/acceptance/modules/test/manifests/triple_nested_classes.pp +0 -27
- data/spec/fixtures/acceptance/modules/test/metadata.json +0 -10
- data/spec/fixtures/acceptance/modules/test/types/elephant.pp +0 -2
- data/spec/fixtures/unit/markdown/output.md +0 -561
- data/spec/fixtures/unit/markdown/output_with_data_types.md +0 -606
- data/spec/fixtures/unit/markdown/output_with_plan.md +0 -595
- data/spec/spec_helper.rb +0 -49
- data/spec/spec_helper_acceptance.rb +0 -58
- data/spec/spec_helper_acceptance_local.rb +0 -10
- data/spec/unit/puppet-strings/describe_spec.rb +0 -141
- data/spec/unit/puppet-strings/json_spec.rb +0 -302
- data/spec/unit/puppet-strings/markdown/base_spec.rb +0 -146
- data/spec/unit/puppet-strings/markdown_spec.rb +0 -374
- data/spec/unit/puppet-strings/yard/code_objects/task_spec.rb +0 -92
- data/spec/unit/puppet-strings/yard/handlers/json/task_handler_spec.rb +0 -116
- data/spec/unit/puppet-strings/yard/handlers/puppet/class_handler_spec.rb +0 -217
- data/spec/unit/puppet-strings/yard/handlers/puppet/data_type_alias_handler_spec.rb +0 -65
- data/spec/unit/puppet-strings/yard/handlers/puppet/defined_type_handler_spec.rb +0 -231
- data/spec/unit/puppet-strings/yard/handlers/puppet/function_handler_spec.rb +0 -315
- data/spec/unit/puppet-strings/yard/handlers/ruby/data_type_handler_spec.rb +0 -309
- data/spec/unit/puppet-strings/yard/handlers/ruby/function_handler_spec.rb +0 -746
- data/spec/unit/puppet-strings/yard/handlers/ruby/provider_handler_spec.rb +0 -158
- data/spec/unit/puppet-strings/yard/handlers/ruby/rsapi_handler_spec.rb +0 -235
- data/spec/unit/puppet-strings/yard/handlers/ruby/type_handler_spec.rb +0 -311
- data/spec/unit/puppet-strings/yard/parsers/json/parser_spec.rb +0 -72
- data/spec/unit/puppet-strings/yard/parsers/json/task_statement_spec.rb +0 -56
- data/spec/unit/puppet-strings/yard/parsers/puppet/parser_spec.rb +0 -251
- data/spec/unit/puppet-strings/yard/util_spec.rb +0 -48
@@ -1,606 +0,0 @@
|
|
1
|
-
# Reference
|
2
|
-
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
|
3
|
-
|
4
|
-
## Table of Contents
|
5
|
-
|
6
|
-
**Classes**
|
7
|
-
|
8
|
-
_Public Classes_
|
9
|
-
|
10
|
-
* [`klass`](#klass): A simple class.
|
11
|
-
|
12
|
-
_Private Classes_
|
13
|
-
|
14
|
-
* `noparams`: Overview for class noparams
|
15
|
-
|
16
|
-
**Defined types**
|
17
|
-
|
18
|
-
* [`klass::dt`](#klassdt): A simple defined type.
|
19
|
-
|
20
|
-
**Resource types**
|
21
|
-
|
22
|
-
* [`apt_key`](#apt_key): Example resource type using the new API.
|
23
|
-
* [`database`](#database): An example database server type.
|
24
|
-
|
25
|
-
**Functions**
|
26
|
-
|
27
|
-
* [`func`](#func): A simple Puppet function.
|
28
|
-
* [`func3x`](#func3x): Documentation for an example 3.x function.
|
29
|
-
* [`func4x`](#func4x): An example 4.x function.
|
30
|
-
* [`func4x_1`](#func4x_1): An example 4.x function with only one signature.
|
31
|
-
|
32
|
-
**Data types**
|
33
|
-
|
34
|
-
* [`Amodule::ComplexAlias`](#amodulecomplexalias): Documentation for Amodule::ComplexAlias
|
35
|
-
* [`Amodule::SimpleAlias`](#amodulesimplealias): Documentation for Amodule::SimpleAlias
|
36
|
-
* [`UnitDataType`](#unitdatatype): An example Puppet Data Type in Ruby.
|
37
|
-
|
38
|
-
**Tasks**
|
39
|
-
|
40
|
-
* [`(stdin)`](#(stdin)): Allows you to backup your database to local file.
|
41
|
-
|
42
|
-
## Classes
|
43
|
-
|
44
|
-
### klass
|
45
|
-
|
46
|
-
An overview for a simple class.
|
47
|
-
|
48
|
-
* **TODO** Do a thing
|
49
|
-
|
50
|
-
* **Note** some note
|
51
|
-
|
52
|
-
* **Since** 1.0.0
|
53
|
-
|
54
|
-
* **See also**
|
55
|
-
www.puppet.com
|
56
|
-
|
57
|
-
#### Examples
|
58
|
-
|
59
|
-
##### This is an example
|
60
|
-
|
61
|
-
```puppet
|
62
|
-
class { 'klass':
|
63
|
-
param1 => 1,
|
64
|
-
param3 => 'foo',
|
65
|
-
}
|
66
|
-
```
|
67
|
-
|
68
|
-
##### This is another example
|
69
|
-
|
70
|
-
```puppet
|
71
|
-
class { 'klass':
|
72
|
-
param1 => 1,
|
73
|
-
param3 => 'foo',
|
74
|
-
}
|
75
|
-
```
|
76
|
-
|
77
|
-
#### Parameters
|
78
|
-
|
79
|
-
The following parameters are available in the `klass` class.
|
80
|
-
|
81
|
-
##### `param1`
|
82
|
-
|
83
|
-
Data type: `Integer`
|
84
|
-
|
85
|
-
First param.
|
86
|
-
|
87
|
-
Default value: 1
|
88
|
-
|
89
|
-
##### `param2`
|
90
|
-
|
91
|
-
Data type: `Any`
|
92
|
-
|
93
|
-
Second param.
|
94
|
-
|
95
|
-
Options:
|
96
|
-
|
97
|
-
* **:opt1** `String`: something about opt1
|
98
|
-
* **:opt2** `Hash`: a hash of stuff
|
99
|
-
|
100
|
-
Default value: `undef`
|
101
|
-
|
102
|
-
##### `param3`
|
103
|
-
|
104
|
-
Data type: `String`
|
105
|
-
|
106
|
-
Third param.
|
107
|
-
|
108
|
-
Default value: 'hi'
|
109
|
-
|
110
|
-
##### `param4`
|
111
|
-
|
112
|
-
Data type: `Enum['one', 'two']`
|
113
|
-
|
114
|
-
Fourth param.
|
115
|
-
|
116
|
-
Options:
|
117
|
-
|
118
|
-
* **:one**: One option
|
119
|
-
* **:two**: Second option
|
120
|
-
|
121
|
-
Default value: 'two'
|
122
|
-
|
123
|
-
## Defined types
|
124
|
-
|
125
|
-
### klass::dt
|
126
|
-
|
127
|
-
An overview for a simple defined type.
|
128
|
-
|
129
|
-
* **Since** 1.1.0
|
130
|
-
|
131
|
-
* **See also**
|
132
|
-
www.puppet.com
|
133
|
-
|
134
|
-
#### Examples
|
135
|
-
|
136
|
-
##### Here's an example of this type:
|
137
|
-
|
138
|
-
```puppet
|
139
|
-
klass::dt { 'foo':
|
140
|
-
param1 => 33,
|
141
|
-
param4 => false,
|
142
|
-
}
|
143
|
-
```
|
144
|
-
|
145
|
-
#### Parameters
|
146
|
-
|
147
|
-
The following parameters are available in the `klass::dt` defined type.
|
148
|
-
|
149
|
-
##### `param1`
|
150
|
-
|
151
|
-
Data type: `Integer`
|
152
|
-
|
153
|
-
First param.
|
154
|
-
|
155
|
-
Default value: 44
|
156
|
-
|
157
|
-
##### `param2`
|
158
|
-
|
159
|
-
Data type: `Any`
|
160
|
-
|
161
|
-
Second param.
|
162
|
-
|
163
|
-
Options:
|
164
|
-
|
165
|
-
* **:opt1** `String`: something about opt1
|
166
|
-
* **:opt2** `Hash`: a hash of stuff
|
167
|
-
|
168
|
-
##### `param3`
|
169
|
-
|
170
|
-
Data type: `String`
|
171
|
-
|
172
|
-
Third param.
|
173
|
-
|
174
|
-
Default value: 'hi'
|
175
|
-
|
176
|
-
##### `param4`
|
177
|
-
|
178
|
-
Data type: `Boolean`
|
179
|
-
|
180
|
-
Fourth param.
|
181
|
-
|
182
|
-
Default value: `true`
|
183
|
-
|
184
|
-
##### `param5`
|
185
|
-
|
186
|
-
Data type: `Enum['a', 'b']`
|
187
|
-
|
188
|
-
Fifth param.
|
189
|
-
|
190
|
-
Options:
|
191
|
-
|
192
|
-
* **:a**: Option A
|
193
|
-
* **:b**: Option B
|
194
|
-
|
195
|
-
Default value: 'a'
|
196
|
-
|
197
|
-
## Resource types
|
198
|
-
|
199
|
-
### apt_key
|
200
|
-
|
201
|
-
This type provides Puppet with the capabilities to manage GPG keys needed
|
202
|
-
by apt to perform package validation. Apt has it's own GPG keyring that can
|
203
|
-
be manipulated through the `apt-key` command.
|
204
|
-
**Autorequires**:
|
205
|
-
If Puppet is given the location of a key file which looks like an absolute
|
206
|
-
path this type will autorequire that file.
|
207
|
-
|
208
|
-
#### Examples
|
209
|
-
|
210
|
-
##### here's an example
|
211
|
-
|
212
|
-
```puppet
|
213
|
-
apt_key { '6F6B15509CF8E59E6E469F327F438280EF8D349F':
|
214
|
-
source => 'http://apt.puppetlabs.com/pubkey.gpg'
|
215
|
-
}
|
216
|
-
```
|
217
|
-
|
218
|
-
#### Properties
|
219
|
-
|
220
|
-
The following properties are available in the `apt_key` type.
|
221
|
-
|
222
|
-
##### `ensure`
|
223
|
-
|
224
|
-
Data type: `Enum[present, absent]`
|
225
|
-
|
226
|
-
Whether this apt key should be present or absent on the target system.
|
227
|
-
|
228
|
-
##### `created`
|
229
|
-
|
230
|
-
Data type: `String`
|
231
|
-
|
232
|
-
Date the key was created, in ISO format.
|
233
|
-
|
234
|
-
#### Parameters
|
235
|
-
|
236
|
-
The following parameters are available in the `apt_key` type.
|
237
|
-
|
238
|
-
##### `id`
|
239
|
-
|
240
|
-
namevar
|
241
|
-
|
242
|
-
Data type: `Variant[Pattern[/A(0x)?[0-9a-fA-F]{8}Z/], Pattern[/A(0x)?[0-9a-fA-F]{16}Z/], Pattern[/A(0x)?[0-9a-fA-F]{40}Z/]]`
|
243
|
-
_*this data type contains a regex that may not be accurately reflected in generated documentation_
|
244
|
-
|
245
|
-
The ID of the key you want to manage.
|
246
|
-
|
247
|
-
### database
|
248
|
-
|
249
|
-
An example database server type.
|
250
|
-
|
251
|
-
#### Examples
|
252
|
-
|
253
|
-
##### here's an example
|
254
|
-
|
255
|
-
```puppet
|
256
|
-
database { 'foo':
|
257
|
-
address => 'qux.baz.bar',
|
258
|
-
}
|
259
|
-
```
|
260
|
-
|
261
|
-
#### Properties
|
262
|
-
|
263
|
-
The following properties are available in the `database` type.
|
264
|
-
|
265
|
-
##### `ensure`
|
266
|
-
|
267
|
-
Valid values: present, absent, up, down
|
268
|
-
|
269
|
-
Aliases: "up"=>"present", "down"=>"absent"
|
270
|
-
|
271
|
-
What state the database should be in.
|
272
|
-
|
273
|
-
Options:
|
274
|
-
|
275
|
-
* **:up**: Upstate
|
276
|
-
* **:down**: Downstate
|
277
|
-
|
278
|
-
Default value: up
|
279
|
-
|
280
|
-
##### `file`
|
281
|
-
|
282
|
-
The database file to use.
|
283
|
-
|
284
|
-
##### `log_level`
|
285
|
-
|
286
|
-
Valid values: debug, warn, error
|
287
|
-
|
288
|
-
The log level to use.
|
289
|
-
|
290
|
-
Default value: warn
|
291
|
-
|
292
|
-
#### Parameters
|
293
|
-
|
294
|
-
The following parameters are available in the `database` type.
|
295
|
-
|
296
|
-
##### `address`
|
297
|
-
|
298
|
-
namevar
|
299
|
-
|
300
|
-
The database server name.
|
301
|
-
|
302
|
-
##### `encryption_key`
|
303
|
-
|
304
|
-
The encryption key to use.
|
305
|
-
|
306
|
-
Required features: encryption.
|
307
|
-
|
308
|
-
##### `encrypt`
|
309
|
-
|
310
|
-
Valid values: `true`, `false`, yes, no
|
311
|
-
|
312
|
-
Whether or not to encrypt the database.
|
313
|
-
|
314
|
-
Default value: `false`
|
315
|
-
|
316
|
-
## Functions
|
317
|
-
|
318
|
-
### func
|
319
|
-
|
320
|
-
Type: Puppet Language
|
321
|
-
|
322
|
-
A simple Puppet function.
|
323
|
-
|
324
|
-
#### Examples
|
325
|
-
|
326
|
-
##### Test
|
327
|
-
|
328
|
-
```puppet
|
329
|
-
$result = func(1, 2)
|
330
|
-
```
|
331
|
-
|
332
|
-
#### `func(Integer $param1, Any $param2, String $param3 = hi, Enum['yes', 'no'] $param4 = 'yes')`
|
333
|
-
|
334
|
-
A simple Puppet function.
|
335
|
-
|
336
|
-
Returns: `Undef` Returns nothing.
|
337
|
-
|
338
|
-
Raises:
|
339
|
-
* `SomeError` this is some error
|
340
|
-
|
341
|
-
##### Examples
|
342
|
-
|
343
|
-
###### Test
|
344
|
-
|
345
|
-
```puppet
|
346
|
-
$result = func(1, 2)
|
347
|
-
```
|
348
|
-
|
349
|
-
##### `param1`
|
350
|
-
|
351
|
-
Data type: `Integer`
|
352
|
-
|
353
|
-
First param.
|
354
|
-
|
355
|
-
##### `param2`
|
356
|
-
|
357
|
-
Data type: `Any`
|
358
|
-
|
359
|
-
Second param.
|
360
|
-
|
361
|
-
##### `param3`
|
362
|
-
|
363
|
-
Data type: `String`
|
364
|
-
|
365
|
-
Third param.
|
366
|
-
|
367
|
-
Options:
|
368
|
-
|
369
|
-
* **:param3opt** `Array`: Something about this option
|
370
|
-
|
371
|
-
##### `param4`
|
372
|
-
|
373
|
-
Data type: `Enum['yes', 'no']`
|
374
|
-
|
375
|
-
Fourth param.
|
376
|
-
|
377
|
-
Options:
|
378
|
-
|
379
|
-
* **:yes**: Yes option.
|
380
|
-
* **:no**: No option.
|
381
|
-
|
382
|
-
### func3x
|
383
|
-
|
384
|
-
Type: Ruby 3.x API
|
385
|
-
|
386
|
-
Documentation for an example 3.x function.
|
387
|
-
|
388
|
-
#### Examples
|
389
|
-
|
390
|
-
##### Calling the function.
|
391
|
-
|
392
|
-
```puppet
|
393
|
-
func3x('hi', 10)
|
394
|
-
```
|
395
|
-
|
396
|
-
#### `func3x(String $param1, Integer $param2)`
|
397
|
-
|
398
|
-
Documentation for an example 3.x function.
|
399
|
-
|
400
|
-
Returns: `Undef`
|
401
|
-
|
402
|
-
##### Examples
|
403
|
-
|
404
|
-
###### Calling the function.
|
405
|
-
|
406
|
-
```puppet
|
407
|
-
func3x('hi', 10)
|
408
|
-
```
|
409
|
-
|
410
|
-
##### `param1`
|
411
|
-
|
412
|
-
Data type: `String`
|
413
|
-
|
414
|
-
The first parameter.
|
415
|
-
|
416
|
-
##### `param2`
|
417
|
-
|
418
|
-
Data type: `Integer`
|
419
|
-
|
420
|
-
The second parameter.
|
421
|
-
|
422
|
-
### func4x
|
423
|
-
|
424
|
-
Type: Ruby 4.x API
|
425
|
-
|
426
|
-
An example 4.x function.
|
427
|
-
|
428
|
-
#### Examples
|
429
|
-
|
430
|
-
##### Calling the function
|
431
|
-
|
432
|
-
```puppet
|
433
|
-
$result = func4x(1, 'foo')
|
434
|
-
```
|
435
|
-
|
436
|
-
##### Calling the function with all args
|
437
|
-
|
438
|
-
```puppet
|
439
|
-
$result = func4x(1, 'foo', ['bar'])
|
440
|
-
```
|
441
|
-
|
442
|
-
#### `func4x(Integer $param1, Any $param2, Optional[Array[String]] $param3, Optional[Enum[one, two]] $param4)`
|
443
|
-
|
444
|
-
An overview for the first overload.
|
445
|
-
|
446
|
-
Returns: `Undef` Returns nothing.
|
447
|
-
|
448
|
-
##### Examples
|
449
|
-
|
450
|
-
###### Calling the function foo
|
451
|
-
|
452
|
-
```puppet
|
453
|
-
$result = func4x(1, 'foooo')
|
454
|
-
```
|
455
|
-
|
456
|
-
##### `param1`
|
457
|
-
|
458
|
-
Data type: `Integer`
|
459
|
-
|
460
|
-
The first parameter.
|
461
|
-
|
462
|
-
##### `param2`
|
463
|
-
|
464
|
-
Data type: `Any`
|
465
|
-
|
466
|
-
The second parameter.
|
467
|
-
|
468
|
-
Options:
|
469
|
-
|
470
|
-
* **:option** `String`: an option
|
471
|
-
* **:option2** `String`: another option
|
472
|
-
|
473
|
-
##### `param3`
|
474
|
-
|
475
|
-
Data type: `Optional[Array[String]]`
|
476
|
-
|
477
|
-
The third parameter.
|
478
|
-
|
479
|
-
##### `param4`
|
480
|
-
|
481
|
-
Data type: `Optional[Enum[one, two]]`
|
482
|
-
|
483
|
-
The fourth parameter.
|
484
|
-
|
485
|
-
Options:
|
486
|
-
|
487
|
-
* **:one**: Option one.
|
488
|
-
* **:two**: Option two.
|
489
|
-
|
490
|
-
#### `func4x(Boolean $param, Callable &$block)`
|
491
|
-
|
492
|
-
An overview for the second overload.
|
493
|
-
|
494
|
-
Returns: `String` Returns a string.
|
495
|
-
|
496
|
-
##### Examples
|
497
|
-
|
498
|
-
###### Calling the function bar
|
499
|
-
|
500
|
-
```puppet
|
501
|
-
$result = func4x(1, 'bar', ['foo'])
|
502
|
-
```
|
503
|
-
|
504
|
-
##### `param`
|
505
|
-
|
506
|
-
Data type: `Boolean`
|
507
|
-
|
508
|
-
The first parameter.
|
509
|
-
|
510
|
-
##### `&block`
|
511
|
-
|
512
|
-
Data type: `Callable`
|
513
|
-
|
514
|
-
The block parameter.
|
515
|
-
|
516
|
-
### func4x_1
|
517
|
-
|
518
|
-
Type: Ruby 4.x API
|
519
|
-
|
520
|
-
An example 4.x function with only one signature.
|
521
|
-
|
522
|
-
#### `func4x_1(Integer $param1)`
|
523
|
-
|
524
|
-
An example 4.x function with only one signature.
|
525
|
-
|
526
|
-
Returns: `Undef` Returns nothing.
|
527
|
-
|
528
|
-
##### `param1`
|
529
|
-
|
530
|
-
Data type: `Integer`
|
531
|
-
|
532
|
-
The first parameter.
|
533
|
-
|
534
|
-
## Data types
|
535
|
-
|
536
|
-
### Amodule::ComplexAlias
|
537
|
-
|
538
|
-
Documentation for Amodule::ComplexAlias
|
539
|
-
|
540
|
-
Alias of `Struct[{
|
541
|
-
value_type => Optional[ValueType],
|
542
|
-
merge => Optional[MergeType]
|
543
|
-
}]`
|
544
|
-
|
545
|
-
### Amodule::SimpleAlias
|
546
|
-
|
547
|
-
Documentation for Amodule::SimpleAlias
|
548
|
-
|
549
|
-
Alias of `Variant[Numeric, String[1,20]]`
|
550
|
-
|
551
|
-
### UnitDataType
|
552
|
-
|
553
|
-
An example Puppet Data Type in Ruby.
|
554
|
-
|
555
|
-
#### Parameters
|
556
|
-
|
557
|
-
The following parameters are available in the `UnitDataType` data type.
|
558
|
-
|
559
|
-
##### `param1`
|
560
|
-
|
561
|
-
Data type: `Variant[Numeric, String[1,2]]`
|
562
|
-
|
563
|
-
A variant parameter.
|
564
|
-
|
565
|
-
##### `param2`
|
566
|
-
|
567
|
-
Data type: `Optional[String[1]]`
|
568
|
-
|
569
|
-
Optional String parameter.
|
570
|
-
|
571
|
-
Default value: param2
|
572
|
-
|
573
|
-
## Tasks
|
574
|
-
|
575
|
-
### (stdin)
|
576
|
-
|
577
|
-
Allows you to backup your database to local file.
|
578
|
-
|
579
|
-
**Supports noop?** false
|
580
|
-
|
581
|
-
#### Parameters
|
582
|
-
|
583
|
-
##### `database`
|
584
|
-
|
585
|
-
Data type: `Optional[String[1]]`
|
586
|
-
|
587
|
-
Database to connect to
|
588
|
-
|
589
|
-
##### `user`
|
590
|
-
|
591
|
-
Data type: `Optional[String[1]]`
|
592
|
-
|
593
|
-
The user
|
594
|
-
|
595
|
-
##### `password`
|
596
|
-
|
597
|
-
Data type: `Optional[String[1]]`
|
598
|
-
|
599
|
-
The password
|
600
|
-
|
601
|
-
##### `sql`
|
602
|
-
|
603
|
-
Data type: `String[1]`
|
604
|
-
|
605
|
-
Path to file you want backup to
|
606
|
-
|