Skip to content

Commit

Permalink
Make Redirector properties dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryr committed Mar 20, 2015
1 parent 01ec464 commit 3d4f82e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions gec22_demo/web_redirector/redirector.oedl
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@

# This is the OMF6 Application Definition for the simple Ruby-based web redirector
#
# First run the 'web_redirector_config' to write the config yaml file for the
# First run the 'web_redirector_config' to write the config yaml file for the
# Rack application. Then run 'web_redirector' to start the Rack application which
# does the redirection

defApplication('web_redirector_config') do |app|
app.quiet = true
app.binary_path = "/root/web-redirector/configure"
app.description = "Configuration for a Simple Ruby-based web-redirector"
app.description = "Configuration for a Simple Ruby-based web-redirector"
app.defProperty(
"config",
"YAML-formated config string",
"config",
"YAML-formated config string",
"",
:type => :string, :dynamic => false)
:type => :string, :dynamic => true)
end

defApplication('web_redirector') do |app|
app.quiet = true
app.binary_path = "/usr/bin/killall -s 9 rackup ; /usr/local/bin/rackup"
app.description = "Simple Ruby-based web-redirector"
app.description = "Simple Ruby-based web-redirector"
app.defProperty(
"host",
"Address to listen to",
"-o",
:order => 1, :type => :string, :dynamic => false, :mandatory => true, :default => 'localhost')
"host",
"Address to listen to",
"-o",
:order => 1, :type => :string, :dynamic => true, :mandatory => true, :default => 'localhost')
app.defProperty(
"rackapp",
"Path to the redirector Rack Application",
"rackapp",
"Path to the redirector Rack Application",
"",
:order => 2, :type => :string, :dynamic => false, :mandatory => true, :default => '/root/web-redirector/config.ru')
:order => 2, :type => :string, :dynamic => true, :mandatory => true, :default => '/root/web-redirector/config.ru')
end

0 comments on commit 3d4f82e

Please sign in to comment.