Sha256: da0a319fda1ce118910d160959f9c794949ba26b93f6d37ee13def7e0d6f004c

Contents?: true

Size: 777 Bytes

Versions: 6

Compression:

Stored size: 777 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://}    ],
                ["Schemes::HTTP",  %r{^http://}  ],
                ["Schemes::HTTPS", %r{^https://} ],
                ["Schemes::HDFS",  %r{^hdfs://}  ]
               ]
  end
end


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
imw-0.2.6 lib/imw/schemes.rb
imw-0.2.5 lib/imw/schemes.rb
imw-0.2.4 lib/imw/schemes.rb
imw-0.2.3 lib/imw/schemes.rb
imw-0.2.2 lib/imw/schemes.rb
imw-0.2.1 lib/imw/schemes.rb