Module: DataCatalog::ImporterFramework::Shared
Instance Method Summary collapse
Instance Method Details
#folder(resource) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/shared.rb', line 5 def folder(resource) unless @options raise Error, "@options is undefined" end unless cache_folder = @options[:cache_folder] raise Error, "option :cache_folder is required" end File.join(@options[:cache_folder], resource.to_s) end |