Sha256: a3f5699277c61c5f914307438bd78a1b5a32857386efb1a29c18a4e45eb60540

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

module DataCatalog
  module ImporterFramework
    module Shared
      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datacatalog-importer-0.1.19 lib/shared.rb
datacatalog-importer-0.1.18 lib/shared.rb
datacatalog-importer-0.1.17 lib/shared.rb
datacatalog-importer-0.1.16 lib/shared.rb
datacatalog-importer-0.1.15 lib/shared.rb
datacatalog-importer-0.1.14 lib/shared.rb