Skip to content

Instantly share code, notes, and snippets.

@abstractj
Created July 20, 2011 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abstractj/1094961 to your computer and use it in GitHub Desktop.
Save abstractj/1094961 to your computer and use it in GitHub Desktop.
DeployUtils.rb
module TorqueBox
module DeployUtils
class << self
def run_server_clustered
config_path = "#{File.join(DeployUtils.server_dir, '/configuration/standalone-ha.xml')}"
args = "--server-config=#{config_path}"
exec_command(run_command_line.join(" #{args}"))
end
end
end
# or as alternative pass as arguments to run_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment