1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

feature #661: Update conf file

This commit is contained in:
Daniel Molina 2011-06-13 16:40:46 +02:00
parent cc4da0210d
commit f9583e415b
6 changed files with 24 additions and 12 deletions

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneHostHelper < OpenNebulaHelper::OneHelper class OneHostHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onehost.yaml"
def self.rname def self.rname
"HOST" "HOST"
end end
def self.conf_file
"onehost.yaml"
end
private private
def factory(id=nil) def factory(id=nil)

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneImageHelper < OpenNebulaHelper::OneHelper class OneImageHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/oneimage.yaml"
def self.rname def self.rname
"IMAGE" "IMAGE"
end end
def self.conf_file
"oneimage.yaml"
end
private private
def factory(id=nil) def factory(id=nil)

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneTemplateHelper < OpenNebulaHelper::OneHelper class OneTemplateHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onetemplate.yaml"
def self.rname def self.rname
"TEMPLATE" "TEMPLATE"
end end
def self.conf_file
"onetemplate.yaml"
end
private private
def factory(id=nil) def factory(id=nil)

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneUserHelper < OpenNebulaHelper::OneHelper class OneUserHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/oneuser.yaml"
def self.rname def self.rname
"USER" "USER"
end end
def self.conf_file
"oneuser.yaml"
end
def self.password_to_str_desc def self.password_to_str_desc
"TBD" "TBD"
end end

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneVMHelper < OpenNebulaHelper::OneHelper class OneVMHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onevm.yaml"
def self.rname def self.rname
"VM" "VM"
end end
def self.conf_file
"onevm.yaml"
end
private private
def factory(id=nil) def factory(id=nil)

View File

@ -17,12 +17,14 @@
require 'one_helper' require 'one_helper'
class OneVNetHelper < OpenNebulaHelper::OneHelper class OneVNetHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onevnet.yaml"
def self.rname def self.rname
"VNET" "VNET"
end end
def self.conf_file
"onevnet.yaml"
end
private private
def factory(id=nil) def factory(id=nil)