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

- old
+ new

@@ -4,17 +4,19 @@ 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' + autoload :SQL, 'imw/schemes/sql' 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 ] + ["Schemes::HDFS", %r{^hdfs://}i ], + ["Schemes::SQL::Base", %r{^\w+sql://}i ] ] end end