Sha256: e45a7c23b98125b787bc0b0200ac6fdf1cc98d75cfacedb9b95426f532fb1a69
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 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::Hook.collection do set :in_convert do |video| #.. end set :in_thumb do |video| #.. end # ... end # single hook setup VTools::Hook.set :job_started do #.. end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vtools-1.0.2 | doc/HOOKS.md |
vtools-1.0.1 | doc/HOOKS.md |
vtools-1.0.0 | doc/HOOKS.md |