#-*- mode: ruby -*- # # h2. etc/imwrc -- default site-wide imw configuration file # # == About # # This file contains the site-wide configuration settings for this # installation of the Infinite Monkeywrench. Settings here override # the defaults in lib/imw/utils/config.rb (see the # documentation for that file for more detail on the variables that # can be configured here) but will in turn be overwritten by settings # in the ~/.imwrc file in each user's directory (though the # location of this file can be customized). # # At the present moment, all settings are stored as plain Ruby files # (though they may lack the .rb extension). As the IMW # develops, these will be replaced by YAML files which will be parsed # by lib/imw/utils/config.rb. # # Author:: (Philip flip Kromer, Dhruv Bansal) for Infinite Monkeywrench Project (mailto:coders@infochimps.org) # Copyright:: Copyright (c) 2008 infochimps.org # License:: GPL 3.0 # Website:: http://infinitemonkeywrench.org/ # module IMW PATHS = { :home => ENV['HOME'], :data_root => "/var/lib/imw", :log_root => "/var/log/imw", :scripts_root => "/usr/share/imw", :tmp_root => "/tmp/imw", # the imw library :imw_root => File.expand_path(File.dirname(__FILE__) + "/.."), :imw_bin => [:imw_root, 'bin'], :imw_etc => [:imw_root, 'etc'], :imw_lib => [:imw_root, 'lib'], # workflow :ripd_root => [:data_root, 'ripd'], :peeld_root => [:data_root, 'peeld'], :mungd_root => [:data_root, 'mungd'], :temp_root => [:data_root, 'temp'], :fixd_root => [:data_root, 'fixd'], :pkgd_root => [:data_root, 'pkgd'] } # Default time format. STRFTIME_FORMAT = "%Y%m%d-%H%M%S" unless defined? STRFTIME_FORMAT # Paths to external programs used by IMW. EXTERNAL_PROGRAMS = { :tar => "tar", :rar => "rar", :zip => "zip", :unzip => "unzip", :gzip => "gzip", :bzip2 => "bzip2", :wget => "wget" } unless defined? ::IMW::EXTERNAL_PROGRAMS module Files # Regular expressions which match pathnames to the name of the # appropriate IMW::Files class. # # File class names should be stripped of the leading # IMW::Files prefix, i.e. - the file object # IMW::Files::Bz2 should be referenced by the string # "Bz2". FILE_REGEXPS = [] unless defined? ::IMW::Files::FILE_REGEXPS end end