Sha256: 3266638a3c805cf5bcbd1d4da347da66d0836eb422c4e6c070f1ecd03ed73e6a

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

#
# Author:: Jamie Winsor (<jamie@enmasse.com>)
# Copyright:: 2011, En Masse Entertainment, Inc
# License:: Apache License, Version 2.0
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

module EnMasse
  module Dragonfly
    module FFMPEG
      module Config
        
        def self.apply_configuration(app, opts = {})
          app.configure do |c|
            c.analyser.register(Analyser)
            c.encoder.register(Encoder) do |e|
              e.output_directory = opts[:output_directory] if opts.has_key?(:output_directory)
              e.encoder_profiles = opts[:encoder_profiles] if opts.has_key?(:encoder_profiles)
            end
          end
        end
        
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dragonfly-ffmpeg-0.0.3 lib/dragonfly-ffmpeg/config.rb