lib/projects.rb in dev_projects-0.0.14 vs lib/projects.rb in dev_projects-0.0.15
- old
+ new
@@ -15,10 +15,11 @@
def update
self.each{|k,v|
self[k]=Project.new(v) if(v.is_a?(String))
self[k]=Project.new(v) if(!v.is_a?(Project) && v.is_a?(Hash))
self[k][:name]=k
+ #self[k].update if self[k].respond_to?("update".to_sym)
}
end
def save filename=''
@filename=filename if !filename.nil? && filename.length > 0
@@ -52,7 +53,14 @@
else
project[:name]=name
end
end
project
+ end
+
+ def pull
+ self.each{|k,v| v.pull if v.respond_to?("pull".to_sym)}
+ end
+ def rake
+ self.each{|k,v| v.pull if v.respond_to?("pull".to_sym)}
end
end
\ No newline at end of file