Sha256: 1604dc07e25505697a8ff418ce1077cea1faaf100e3a15f5771d5d1aaaa2bcef

Contents?: true

Size: 810 Bytes

Versions: 19

Compression:

Stored size: 810 Bytes

Contents

module IMW
  class Dataset
    include IMW::Paths

    protected
    # Sets paths to the workflow directories for this dataset (+ripd+,
    # +rawd+, +fixd+, +pkgd+) as well as the following paths:
    #
    # script::
    #   The path to the file the dataset was initialized in.
    #
    # root::
    #   The parent directory of the file the dataset was initialized
    #   in or the value of the <tt>:root</tt> key in
    #   IMW::Dataset#options
    #
    def set_default_paths
      add_path :script, File.expand_path(eval('__FILE__'))
      add_path :root,   options[:root] || File.dirname(path_to(:script))
      workflow_dirs.each do |dir|
        add_path dir, :root, dir.to_s
      end
    end

    # Overwrite this method to set additional paths for the dataset.
    def set_paths
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
imw-0.2.18 lib/imw/dataset/paths.rb
imw-0.2.17 lib/imw/dataset/paths.rb
imw-0.2.16 lib/imw/dataset/paths.rb
imw-0.2.15 lib/imw/dataset/paths.rb
imw-0.2.14 lib/imw/dataset/paths.rb
imw-0.2.13 lib/imw/dataset/paths.rb
imw-0.2.12 lib/imw/dataset/paths.rb
imw-0.2.11 lib/imw/dataset/paths.rb
imw-0.2.10 lib/imw/dataset/paths.rb
imw-0.2.9 lib/imw/dataset/paths.rb
imw-0.2.8 lib/imw/dataset/paths.rb
imw-0.2.7 lib/imw/dataset/paths.rb
imw-0.2.6 lib/imw/dataset/paths.rb
imw-0.2.5 lib/imw/dataset/paths.rb
imw-0.2.4 lib/imw/dataset/paths.rb
imw-0.2.3 lib/imw/dataset/paths.rb
imw-0.2.2 lib/imw/dataset/paths.rb
imw-0.2.1 lib/imw/dataset/paths.rb
imw-0.2.0 lib/imw/dataset/paths.rb