bin/omf6 in nitos_testbed_rc-1.0.0.pre.11 vs bin/omf6 in nitos_testbed_rc-1.0.0.pre.12
- old
+ new
@@ -2,15 +2,20 @@
require 'rubygems'
require 'time'
require 'omf_common'
require 'optparse'
require 'progress_bar'
+require 'erb'
+require 'socket'
+
CONF_PATH = '~/.omf/etc/omf_script_conf.yaml'
FRISB_PATH = '/etc/nitos_testbed_rc/frisbee_proxy_conf.yaml'
CM_PATH = '/etc/nitos_testbed_rc/cm_proxy_conf.yaml'
-@config = YAML.load_file(File.expand_path(CONF_PATH))
+conf_file = File.read(File.expand_path(CONF_PATH))
+conf_file = ERB.new(conf_file, nil).result(binding)
+@config = YAML.load(conf_file)
# @config = YAML.load_file(File.join(File.dirname(File.expand_path(__FILE__)), '.../etc/omf_script_conf.yaml'))
@auth = @config[:auth]
@xmpp = @config[:xmpp]
@omf = @config[:omf_script]
@@ -499,10 +504,10 @@
fcontroller.request([:ports]) do |m|
port = m.read_property("ports")
start_saving()
puts "INFO: Starting Imagezip Server on port '#{port}'"
create_imagezip_server(comm, fcontroller, port, options)
- sleep 2
+ sleep 1
puts "INFO: Starting Imagezip Client on node '#{options[:node]}'"
create_imagezip_client(comm, fcontroller, options[:node], port, options)
print "INFO: Saving Image for node '#{options[:node]}'..."
show_wait_spinner(5){
while saving?
\ No newline at end of file