lib/spigoter/plugins.rb in spigoter-0.1.2 vs lib/spigoter/plugins.rb in spigoter-0.2.0

- old
+ new

@@ -4,9 +4,13 @@ case data['type'] when 'curse' f = Spigoter::PluginCurse.new(data['url']).download hash = {:name => "#{data['name']}.jar", :file => f} return hash + when 'devbukkit' + f = Spigoter::PluginBukkit.new(data['url']).download + hash = {:name => "#{data['name']}.jar", :file => f} + return hash else raise "Unkown source" end end end \ No newline at end of file