29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# File 'lib/depengine/dsl/cdb.rb', line 29
def set_cdb_parameter(key, value)
Helper.validates_presence_of $recipe_config['cdb_host'], \
"cdb_host parameter is missing"
Helper.validates_presence_of $recipe_config['cdb_context'], \
"cdb_context parameter is missing"
Helper.validates_presence_of $recipe_config[:module_name], \
"module_name parameter is missing"
cdb = Provider::CDB.new
cdb.protocol = 'http'
cdb.host = $recipe_config['cdb_host']
cdb.context = $recipe_config['cdb_context']
cdb.env = $recipe_config[:env]
cdb.set_parameter(File.join( $recipe_config[:env], \
$recipe_config[:module_name] ), key, value)
end
|