Sha256: 5a5515f07d803847cfbba98df57dfd1b7cd29ca70fe9166e78556dc8c27560a4
Contents?: true
Size: 670 Bytes
Versions: 3
Compression:
Stored size: 670 Bytes
Contents
# Using hooks Multiple actions can be attached for a single hook. **hooks placeholders:** * job_started (video, action) * job_finished (result, video, action) * before_convert (video, command) * in_convert (video, progress) * convert_success (video, output_file) * convert_error (video, error, ffmpeg_output) * before_thumb (video, config) * in_thumb (video, thumb) * thumb_success (video, thumbs_array) * thumb_error (video, errors) ``` ruby # multiple hooks setup VTools::Handler.collection do set :in_convert do |video| #.. end set :in_thumb do |video| #.. end # ... end # single hook setup VTools::Handler.set :job_started do #.. end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vtools-0.0.3 | doc/HOOKS.md |
vtools-0.0.2 | doc/HOOKS.md |
vtools-0.0.1 | doc/HOOKS.md |