Sha256: 645665ee6238a3f637b454a64072532d440e1ab9831dd463c696b5b13fc7e0d8
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
module IMW module Schemes autoload :Local, 'imw/schemes/local' autoload :Remote, 'imw/schemes/remote' autoload :S3, 'imw/schemes/s3' autoload :HTTP, 'imw/schemes/http' autoload :HTTPS, 'imw/schemes/http' autoload :HDFS, 'imw/schemes/hdfs' HANDLERS = [ ["Schemes::Local::Base", Proc.new { |resource| resource.scheme == 'file' || resource.scheme.blank? } ], ["Schemes::Remote::Base", Proc.new { |resource| resource.scheme != 'file' && resource.scheme.present? } ], ["Schemes::S3", %r{^s3://}i ], ["Schemes::HTTP", %r{^http://}i ], ["Schemes::HTTPS", %r{^https://}i ], ["Schemes::HDFS", %r{^hdfs://}i ] ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
imw-0.2.7 | lib/imw/schemes.rb |