Method: Pipeline::URLMounter#supports?
- Defined in:
- lib/pipeline/mounters/url_mounter.rb
#supports?(target) ⇒ Boolean
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/pipeline/mounters/url_mounter.rb', line 17 def supports? target start = target.slice(0,4) last = target.slice(-4,target.length) if last === ".git" return false elsif start === "http" return true else return false end end |