Method: Backup::Notifier::Command#args
- Defined in:
- lib/backup/notifier/command.rb
#args ⇒ Object
Arguments to pass to the command.
Must be an array of strings or callable objects.
Callables will be invoked with #call(model, status), and the return value used as the argument.
In strings you can use the following placeholders:
%l - Model label %t - Model trigger %s - Status (success/failure/warning) %v - Status verb (succeeded/failed/succeeded with warnings)
All placeholders can be used with uppercase letters to capitalize the value.
Defaults to [“%L %v”]
33 34 35 |
# File 'lib/backup/notifier/command.rb', line 33 def args @args end |