1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +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'
class OneHostHelper < OpenNebulaHelper::OneHelper
TABLE_CONF_FILE="#{OpenNebulaHelper::TABLE_CONF_PATH}/onehost.yaml"
def self.rname
"HOST"
end
def self.conf_file
"onehost.yaml"
end
private
def factory(id=nil)

View File

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

View File

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

View File

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

View File

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

View File

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