Sha256: 3c6191bc7a6a4417ee5edfd7973c092647b61cd4325f38e6575a40f45214971b

Contents?: true

Size: 600 Bytes

Versions: 50

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

module Ehbrs
  module Videos
    module Profiles
      module Base
        extend ::ActiveSupport::Concern

        attr_reader :convert_job

        included do
          include ActiveSupport::Callbacks
          define_callbacks :convert, :swap
        end

        def ffmpeg_args
          []
        end

        def on_convert_job
          old_value = convert_job
          begin
            yield
          ensure
            self.convert_job = old_value
          end
        end

        private

        attr_writer :convert_job
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
ehbrs-tools-0.39.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.38.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.37.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.36.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.35.1 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.35.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.34.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.33.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.32.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.31.1 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.31.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.30.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.29.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.28.3 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.28.2 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.28.1 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.28.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.27.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.26.0 lib/ehbrs/videos/profiles/base.rb
ehbrs-tools-0.25.1 lib/ehbrs/videos/profiles/base.rb