Skip to content

Commit

Permalink
Set default variables in the engine config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed May 7, 2013
1 parent 39b93ed commit b383f94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lib/generators/sufia/templates/config/sufia.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Returns an array containing the vhost 'CoSign service' value and URL
Sufia.config do |config|
config.id_namespace = "sufia"
config.fits_path = "fits.sh"

config.fits_to_desc_mapping= {
:file_title => :title,
:file_author => :creator
Expand Down Expand Up @@ -59,14 +58,20 @@
config.queue = Sufia::Resque::Queue

# Map hostnames onto Google Analytics tracking IDs
#config.google_analytics_id = 'UA-99999999-1'
# config.google_analytics_id = 'UA-99999999-1'


# Where to store tempfiles, leave blank for the system temp directory (e.g. /tmp)
#config.temp_file_base = '/home/developer1'
# config.temp_file_base = '/home/developer1'

# If you have ffmpeg installed and want to transcode audio and video uncomment this line
#config.enable_ffmpeg = true
# config.enable_ffmpeg = true

# Specify the Fedora pid prefix:
# config.id_namespace = "sufia"

# Specify the path to the file characterization tool:
# config.fits_path = "fits.sh"

end

Expand Down
2 changes: 2 additions & 0 deletions lib/sufia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ class Engine < ::Rails::Engine
config.ffmpeg_path = 'ffmpeg'
config.fits_message_length = 5
config.temp_file_base = nil
config.id_namespace = "sufia"
config.fits_path = "fits.sh"

config.autoload_paths += %W(
#{config.root}/lib/sufia/jobs
Expand Down

0 comments on commit b383f94

Please sign in to comment.