lib/imw/dataset.rb in imw-0.2.7 vs lib/imw/dataset.rb in imw-0.2.8

- old
+ new

@@ -94,13 +94,16 @@ # # repo = IMW::Repository.new # dataset = IMW::Dataset.new :my_dataset, :repository => repo class Dataset - include IMW::Workflow + # The handle this dataset goes by. Used for identifying it within + # a repository. + attr_accessor :handle - attr_accessor :handle, :options + # Options for this dataset. + attr_accessor :options def initialize handle, options = {} @options = options @handle = handle set_default_paths unless options[:skip_paths] @@ -108,8 +111,15 @@ initialize_workflow unless options[:skip_workflow] if options[:repository] options[:repository][handle] = self end end + + # Provides this dataset with a workflow of tasks managed by Rake. + include IMW::Workflow + + # Provides this dataset with DSL like methods to construct a + # schema in an IMW file. + include IMW::Metadata::DSL end end