etc/imwrc.rb in imw-0.1.1 vs etc/imwrc.rb in imw-0.2.0
- old
+ new
@@ -19,58 +19,8 @@
#
# 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
- # <tt>IMW::Files</tt> prefix, i.e. - the file object
- # <tt>IMW::Files::Bz2</tt> should be referenced by the string
- # <tt>"Bz2"</tt>.
- FILE_REGEXPS = [] unless defined? ::IMW::Files::FILE_REGEXPS
- end
-
end
-
-