lib/kuzushi.rb in kuzushi-0.0.31 vs lib/kuzushi.rb in kuzushi-0.0.32
- old
+ new
@@ -302,12 +302,13 @@
def fetch(file, filter = lambda { |d| d }, &block)
names = config_names.clone
begin
## its important that we try each name for the script - allows for polymorphic scripts
- tmpfile(filter.call(http_get("#{@base_url}/#{names.first}#{file}")), file) do |tmp|
- block.call(tmp)
- end
+ block.call("/tmp/kuzushi/#{@name}/#{file}")
+# tmpfile(filter.call(http_get("#{@base_url}/#{names.first}#{file}")), file) do |tmp|
+# block.call(tmp)
+# end
rescue RestClient::ResourceNotFound
names.shift
retry unless names.empty?
error("file not found: #{file}")
rescue Object => e