Method: Pipeline::Mounters.mount

Defined in:
lib/pipeline/mounters.rb

.mount(tracker) ⇒ Object



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/pipeline/mounters.rb', line 27

def self.mount tracker
	target = tracker.options[:target]
	Pipeline.debug "Mounting target: #{target}"
	trigger = Pipeline::Event.new(tracker.options[:appname])
	@mounters.each do | c |
	  mounter = c.new trigger, tracker.options
  begin 
 	Pipeline.debug "Checking about mounting #{target} with #{mounter}"
	    if mounter.supports? target
 	  Pipeline.notify "Mounting #{target} with #{mounter}"
 	  path = mounter.mount target
 	  Pipeline.notify "Mounted #{target} with #{mounter}"
  return path
 	end
 rescue => e 
 	Pipeline.notify e.message
 end
	end
end