Displaying 4 results from an estimated 4 matches for "cache_all".
Did you mean:
cache_add
2008 May 27
2
Help with Writing Meaningful Specs
...will aggregate feeds from several
places and save them in a database for later use.
An internet search eventually led me to the following method for looping
through the feeds in the database, getting the contents of the URL and then
passing this into another model to prepare and save it.
def self.cache_all
feeds = self.find(:all)
for feed in feeds
xml = REXML::Document.new Net::HTTP.get(URI.parse(feed.url))
xml.elements.each ''//item'' do |item|
Item.prepare_and_save(feed, item)
end
end
end
Problems are now beginning to arise when trying to write the spec...
2015 May 15
1
[PATCH] builder: Remove a few unnecessary 'virt-builder' strings from error messages.
...ersion'. Use '--list' to list available template names.")
| _ ->
- error (f_"virt-builder: too many parameters, expecting 'os-version'");
+ error (f_"--notes: too many parameters, expecting 'os-version'");
)
| `Cache_all
| `Print_cache
@@ -254,7 +254,7 @@ read the man page virt-builder(1).
(match args with
| [] -> ""
| _ ->
- error (f_"virt-builder --cache-all-templates/--print-cache/--delete-cache does not need any extra arguments")
+ error (f_"...
2015 Nov 11
0
[PATCH] builder: Make the interface between cmdline.ml and builder.ml explicit.
...Red Hat Inc.
+ * Copyright (C) 2013-2015 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -30,6 +30,29 @@ module G = Guestfs
open Unix
open Printf
+type cmdline = {
+ mode : [ `Cache_all | `Delete_cache | `Get_kernel | `Install | `List
+ | `Notes | `Print_cache ];
+ arg : string;
+ arch : string;
+ attach : (string option * string) list;
+ cache : string option;
+ check_signature : bool;
+ curl : string;
+ delete_on_failure : bool;
+ format : string option;
+ gpg...
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...os-version\nMissing ‘os-version’. Use ‘--list’ to list available template names.")
| _ ->
- error (f_"--notes: too many parameters, expecting 'os-version'");
+ error (f_"--notes: too many parameters, expecting ‘os-version’");
)
| `Cache_all
| `Print_cache
@@ -264,7 +264,7 @@ read the man page virt-builder(1).
(match args with
| [arg] -> arg
| [] ->
- error (f_"virt-builder --get-kernel image\nMissing 'image' (disk image file) argument")
+ error (f_"virt-builder --get...