Displaying 9 results from an estimated 9 matches for "image_dir".
2013 Sep 18
2
Accessing model attributes in ActiveSupport::Concern module
...ave some models which share the same functionality just on other paths.
So I decided to put these methods in a module and set the path in the
model. My problem is that I''m not able to access the attribute in my module.
my model:
class Job < ActiveRecord::Base
include ImageModel
image_dir = "jobs"end
my module:
module ImageModel
extend ActiveSupport::Concern
def delete_image
unless pic_link == "" || pic_link == nil
begin
if File.delete(Rails.root.join("public", "images", image_dir, pic_link))
return t...
2006 Aug 05
4
file_column just will not work...
Hello,
I have been trying for some time to get a file to upload using the
file_column plugin.
My code is here: http://pastie.caboo.se/7304
But my code is not the issue. I cannot even pass the unit test that
come with the file_column plugin.
If I run ruby file_column_test.rb i get:
1) Error:
test_store_dir_callback(FileColumnTest):
TypeError: can''t convert Fixnum into String
2014 Dec 23
3
[PATCH] v2v: adding --vdsm-ovf-output option
...ot; --vdsm-vol-uuid %s") vdsm_params.vol_uuids))
vdsm_params.vm_uuid
+ vdsm_params.ovf_output
(match vmtype with
| None -> ""
| Some `Server -> " --vmtype server"
@@ -59,9 +61,6 @@ object
(* Target image directory. *)
val mutable image_dir = ""
- (* Target metadata directory. *)
- val mutable ovf_dir = ""
-
(* This is called early on in the conversion and lets us choose the
* name of the target files that eventually get written by the main
* code.
@@ -98,13 +97,12 @@ object
eprintf "VDSM...
2014 Dec 23
2
[PATCH] v2v: adding --vdsm-ovf-output option
...ot; --vdsm-vol-uuid %s") vdsm_params.vol_uuids))
vdsm_params.vm_uuid
+ vdsm_params.ovf_output
(match vmtype with
| None -> ""
| Some `Server -> " --vmtype server"
@@ -59,9 +61,6 @@ object
(* Target image directory. *)
val mutable image_dir = ""
- (* Target metadata directory. *)
- val mutable ovf_dir = ""
-
(* This is called early on in the conversion and lets us choose the
* name of the target files that eventually get written by the main
* code.
@@ -98,13 +97,12 @@ object
eprintf "VDSM...
2014 Dec 23
0
[PATCH] v2v: adding --vdsm-ovf-output option
...ot; --vdsm-vol-uuid %s") vdsm_params.vol_uuids))
vdsm_params.vm_uuid
+ vdsm_params.ovf_output
(match vmtype with
| None -> ""
| Some `Server -> " --vmtype server"
@@ -59,9 +61,6 @@ object
(* Target image directory. *)
val mutable image_dir = ""
- (* Target metadata directory. *)
- val mutable ovf_dir = ""
-
(* This is called early on in the conversion and lets us choose the
* name of the target files that eventually get written by the main
* code.
@@ -98,13 +97,12 @@ object
eprintf "VDSM...
[PATCH node-image] Fix create-ovirt-iso-nodes to allow manual specification of network bridge to use
2009 Jul 05
2
[PATCH node-image] Fix create-ovirt-iso-nodes to allow manual specification of network bridge to use
...ork=$net --mac=00:16:3e:12:34:$last_mac \
--vnc --accelerate --hvm --noautoconsole \
--os-type=linux --os-variant=$os_variant \
--force --noreboot
@@ -78,8 +78,9 @@ usage() {
case $# in 1) warn "$1"; try_h; exit 1;; esac
cat <<EOF
Usage: $ME [-d image_dir] [-n node.iso] [-c num_disks] [-s start-stop]
- [-v vcpus] [-r ram] [-x]
+ [-v vcpus] [-r ram] [-x] [-b network]
-n: node.iso to boot (default: $NODEIMG_DEFAULT)
+ -b: network name (default: $NET_DEFAULT)
-d: directory to place virtual disk (default: $IMGDIR_DEFAULT)
-...
2009 Sep 09
1
oVirt Appliance / Single Machine Install
The following two patches fixes / reimplements the oVirt appliance
project, installing the entire oVirt stack including all server
and node components on one machine.
These patches are intended to be checked out and used to build
the appliance rpm, after which it is installed provides the
/usr/sbin/ovirt-appliance-ctrl script to install/uninstall the
appliance.
The first patch merely removes
2009 Oct 14
4
Refactor ovirt-node-image code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora.
Removed ks files, now in ovirt-node-recipe, which is subpackage of ovirt-node.
Removed tools, these are now in ovirt-node-recipe which is subpackage of
ovirt-node.
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora.
Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe.
Removes old sub packages form ovirt-node, stateless, logos, selinux.
Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221
Added License file.